Mercurial > vim
diff src/mark.c @ 3660:bdf7f3e4c763 v7.3.590
updated for version 7.3.590
Problem: The '< and '> marks cannot be set directly.
Solution: Allow setting '< and '>. (Christian Brabandt)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 06 Jul 2012 17:51:28 +0200 |
parents | 43243f7ce351 |
children | 80b041b994d1 |
line wrap: on
line diff
--- a/src/mark.c +++ b/src/mark.c @@ -98,6 +98,19 @@ setmark_pos(c, pos, fnum) return OK; } +#ifdef FEAT_VISUAL + if (c == '<') + { + curbuf->b_visual.vi_start = *pos; + return OK; + } + if (c == '>') + { + curbuf->b_visual.vi_end = *pos; + return OK; + } +#endif + #ifndef EBCDIC if (c > 'z') /* some islower() and isupper() cannot handle characters above 127 */