summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2008-06-20 15:31:51 +0000
committerBram Moolenaar <Bram@vim.org>2008-06-20 15:31:51 +0000
commit9ecd023206aaba048190457207516eec8d4fe084 (patch)
tree0f00691e34a19fb6983812be3806cd3625991650 /src
parent98385dc0274f8885780e96db28e49a1c0a8f0ea7 (diff)
downloadvim-9ecd023206aaba048190457207516eec8d4fe084.zip
updated for version 7.1-322
Diffstat (limited to 'src')
-rw-r--r--src/eval.c12
-rw-r--r--src/version.c2
2 files changed, 12 insertions, 2 deletions
diff --git a/src/eval.c b/src/eval.c
index 1ad9cec1e..54ca054ca 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -16907,9 +16907,17 @@ var2fpos(varp, dollar_lnum, fnum)
name = get_tv_string_chk(varp);
if (name == NULL)
return NULL;
- if (name[0] == '.') /* cursor */
+ if (name[0] == '.') /* cursor */
return &curwin->w_cursor;
- if (name[0] == '\'') /* mark */
+#ifdef FEAT_VISUAL
+ if (name[0] == 'v' && name[1] == NUL) /* Visual start */
+ {
+ if (VIsual_active)
+ return &VIsual;
+ return &curwin->w_cursor;
+ }
+#endif
+ if (name[0] == '\'') /* mark */
{
pp = getmark_fnum(name[1], FALSE, fnum);
if (pp == NULL || pp == (pos_T *)-1 || pp->lnum <= 0)
diff --git a/src/version.c b/src/version.c
index dc2d995d2..c8d4958cd 100644
--- a/src/version.c
+++ b/src/version.c
@@ -667,6 +667,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 322,
+/**/
321,
/**/
320,