Bug #17463 2010-08-25 15:21
stuart76
insert point off by one character after "fi", "fl"
I have a program that starts with
char flat[] = "my surname is joe"
"my first name is fred" /* hot */
"my office is heated" /* hit */
"I like waffles with cream" /* hop */;
I cannot position the cursor between the following characters "fl", "fi", "ffi", and "ffl" anywhere in my program. For example if I want to change the name of my string to "f2lat", I cannot position the cursor (caret) between the "f" and the "l". Clicking with the mouse just puts the cursor either before the"f" or after the "l". Moving the cursor with the cursor keys moves the cursor from between the space and the "f" to between the "l" and the "a". If I decide that the variable should be "fla3t", I can position the cursor between the "a" and the "t" but when I type "3" at this point I get "fl3at".
If I decide to change my first name to "fired", I can position the cursor between the "f" and the "r" but when I type "i" at this point I get "ifred" (a 1 position error because the cursor is in a string after a "fi").
If I decide that I like waffles with icecream, I can position the cursor before the "c" but when I type "i" I get "I like waffles witih cream" (a 2 position because the cursor is in a string after a "ffl").
Yes, Code::Blocks is making ligatures. I am using the font "DejaVu Sans" style "Book". If I switch to "DejaVu Sans Mono" (Style Book) the ligatures and the position errors vanish. "DejaVu Serif" provokes the problem. "Arial" is a proportional font that doesn't have the problem. I guess it does not have ligatures. "FreeSans" "Medium" shows the problem but "Liberation Sans" Regular and "Verdana" Regular do not.
Please tell the Code::Blocks editor not to use ligatures.
I am using CodeBlocks svn 6525 from on Debian lenny from "deb http://apt.jenslody.de/ any main".
Build: Aug 24 2010, 10:25:55 - wx2.8.10 (Linux, Unicode) - 64 bit
- Category
- Application::Editor
- Group
- Status
- Open
- Close date
- Assigned to
History
Sorry, but I can't reproduce. Any additional information? Does it
still persist?