GNOME Bugzilla – Bug 305167
CTRL+LEFT ARROW not working correctly at start of line
Last modified: 2014-04-10 15:32:39 UTC
Problem: 1. Open a C++ source file. 2. Place the cursor at the start of a line (not the first or second line). 3. Now press CTRL+LEFT ARROW. 4. Instead of going to the end of previous line, the cursor jumps to the line above previous line. Other information:
(not that at 99% this is not a gedit bug, but a gtk+ bug, try to see if that happen with any other gtk application which uses GtkTextView). However I cannot reproduce here... If I have foo bar baz and the cursor is before baz and I hit ctrl+left, the cursor is moved before bar. Obviosly if the line contains just one word, the cursor is moved to the start of the line.
I think it's a problem by concept. Consider the following example: if(true) { do_it(); } I put cursor just before do_it(), and press CTRL+LEFT. I wish the cursor would go to the end (or start) of { on the previous line. However, the cursor jumps to the start of 'true'.
Ok that makes sense... I guess that the current idea is that the cursor jumps to the previous word start as defined by pango word breaking algorithm. I'm reassigning to gtk+ and let them decide if this case can be taken into account for the cursor movement.
Just for reference I took a look at what others do: - emacs behaves like the current GtkTextView - vi behaves like you request - mozilla text entry behaves like you request
The root of the problem is bug #727972. *** This bug has been marked as a duplicate of bug 727972 ***