RFE: Overide GTK+ line selection behavior.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Scribes |
Confirmed
|
Wishlist
|
Mystilleef |
Bug Description
Scribes Version: 0.4-dev-build899
I just found a really annoying bug. When you select multiple lines (e.g. by going to the begining of a line, holding shift and pressing the down-arrow a couple of time) you don't select the lines indicated by the highlighting but actually one line more. I assume this happens because the whitespace (i.e. \n) at the end of the line is selected, too. This creates several problems as described below.
REPRODUCE:
1. create new .php or .py file and fill it with three paragraphs of lorem ipsum
2. put the cursor in the 2nd paragraph and press alt+p to select it
3. now press alt+c to comment it out
WHAT HAPPENS:
The blank line at the end of the paragraph is in the comment, too. Even though it wasn't intentionally selected.
Even worse, try this:
1. take the same file as above
2. move the cursor to the begining of a paragraph
3. select 2 lines by holding shift and pressing "down" twice
4. press alt+c to comment them out
WHAT HAPPENS:
3 lines are commented out instead of the two selected (highlighted) lines.
So any time you select multiple lines and want to do something to the selection, the affected text includes one more line. The only way to work around this is to make sure the selection doesn't include the \n manually (i.e. by pressing left while still holding SHIFT), Or by using the mouse...
Changed in scribes: | |
status: | New → Triaged |
importance: | Undecided → Low |
importance: | Low → Wishlist |
importance: | Wishlist → Medium |
assignee: | nobody → Mystilleef (mystilleef) |
Changed in scribes: | |
status: | Triaged → Fix Committed |
Scribes version 0.4-dev-build954
This bug is still there in the above build.