GNOME Bugzilla – Bug 602074
Type names in variable lists are unreasonably truncated
Last modified: 2009-11-23 10:19:55 UTC
Created attachment 147857 [details] [review] Patch to stop nemiver truncating typenames Nemiver truncates all type names displayed in variables lists at 15 characters (or the first newline) which seems rather short to me. In particular it typically winds up with the bizarre situation where the variable list has all the type names truncated with "..." and then loads of white space to the right edge of the window. The attached patch removes the limit so that it only truncates multiline names - the user is then free to adjust column widths to choose how to truncate things if there isn't enough space to show everything. There might be an issue with the "hover over" variable display window though as that auto-sizes? So maybe we would still want to do truncation there? I'd still like it to be a bit more than 15 though - maybe double that?
*** Bug 600224 has been marked as a duplicate of this bug. ***
Created attachment 148284 [details] [review] Another proposed patch Hello Tom, Thanks for your patch. I agree that we should probably not truncate the type string for the local variable widget, but we should truncate it for things like the popup variable inspector widget. I also agree that by default, truncating at 15 characters is a bit tight. This patch I am proposing does that. Whenever it truncates the type string, it does so at 50 characters. It doesn't truncate the type string in the local variable widget either. I'll wait a little bit and commit this patch, in case someone has some comments. Thank you for your time.
That sounds like a reasonable solution to me, and the patch seems to be fine here.
The patch is pushed to master and should be available in Nemiver 0.7.3 Thanks!