summaryrefslogtreecommitdiffstats
path: root/src/mark.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-07-06 17:51:28 +0200
committerBram Moolenaar <Bram@vim.org>2012-07-06 17:51:28 +0200
commit0306ac33a53114113825242d22d103ee0e3504f9 (patch)
tree957a29311d4c21087f8cb4cebeebb31ad966b739 /src/mark.c
parentbef4790c236327ebb77cd438d49ac9b8e7dc6542 (diff)
updated for version 7.3.590v7.3.590
Problem: The '< and '> marks cannot be set directly. Solution: Allow setting '< and '>. (Christian Brabandt)
Diffstat (limited to 'src/mark.c')
-rw-r--r--src/mark.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mark.c b/src/mark.c
index f8b4c576fe..9b304f3d38 100644
--- 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 */