2014/10/10(Fri) 22:34:57 UTC+9 Bram Moolenaar:
I got the bug reports about cursor movement related to 'sbr' options.
How to reproduce:
- start Vim 7.4.473 or later. (with columns less than equal 80)
$ vim -N -u NONE -c "se sbr=----"
- Input below.
200aa<Esc>g0
Expected behavior:
- Cursor move to first 'a' of this line.
Actual behavior:
- Cursor move to the show-break character.
Investigation result:
Patch 7.4.473 is different from the original Christian's patch.
Patch 7.4.473
https://groups.google.com/d/msg/vim_dev/PT5NYPU_jIE/K6UF_2PEdHQJ
(Added the code to above line of "if (numberextra > 0)".)
Christian's patch (The latter part)
https://groups.google.com/d/msg/vim_dev/oX0ZyQfoem8/gkqq8hZjdioJ
(Added the code to blow line of "if (numberextra > 0)".)
I think Christian's patch is right.
I attached a patch.
NOTE: Patch author is Hiroyuki Takagi.
--
Best regards,
Hirohito Higashi