diff options
author | Bram Moolenaar <Bram@vim.org> | 2008-06-20 15:31:51 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2008-06-20 15:31:51 +0000 |
commit | 9ecd023206aaba048190457207516eec8d4fe084 (patch) | |
tree | 0f00691e34a19fb6983812be3806cd3625991650 /src/eval.c | |
parent | 98385dc0274f8885780e96db28e49a1c0a8f0ea7 (diff) |
updated for version 7.1-322v7.1.322
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/eval.c b/src/eval.c index 1ad9cec1ef..54ca054ca1 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) |