This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
if you select a blank line in the editor, the line selection highlighting extends all the way to the end of the window. but if you select a line which contains characters or whitespace, the line selection highlighting only extends to the last character. this yields a 'ragged' and inconsistent look (see attached picture). things would look much prettier and more consistent if the selection highlighting for every complete line extended to the end of the window.
Created attachment 40684 [details] looks ugly
IIRC it used to work (in 5.5) the way that the selection of empty lines showed as a half-character-wide stripe at the beginning of the line. We should probably fix it to the original state.
i like the look of having the line selection going to the end of the window better; it's more uniform and i always thought that the old line selection looked ragged, especially on JSP pages. besides, extending to the end of the window provides more information; it unambiguously tells you that the entire line (including the carriage return) is selected.
I like half-character newline marking more (could be done for each line not just for the empty ones) because it shows the whitespace at the end of line. However the other IDEs also select till the end of window so we should probably follow or make an option.
Fixed. Text selection is extends to the end of each line. Checking in CaretBasedBlockHighlighting.java; /cvs/editor/lib2/src/org/netbeans/modules/editor/lib2/highlighting/CaretBasedBlockHighlighting.java,v <-- CaretBasedBlockHighlighting.java new revision: 1.5; previous revision: 1.4 done
yup