diff options
author | Bram Moolenaar <Bram@vim.org> | 2008-11-20 15:12:02 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2008-11-20 15:12:02 +0000 |
commit | 8df74be5870f47706d4a84e6499157ca13bf1938 (patch) | |
tree | bd564ec6257d1e0aaee84045741ac9ad6020b5b9 /src/eval.c | |
parent | 0300597f4c743f4fe352192ef653b899e3ab544c (diff) |
updated for version 7.2-048v7.2.048
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/eval.c b/src/eval.c index 98fc8edf30..00190b09ef 100644 --- a/src/eval.c +++ b/src/eval.c @@ -18146,14 +18146,17 @@ get_vim_var_list(idx) } /* - * Set v:count, v:count1 and v:prevcount. + * Set v:count to "count" and v:count1 to "count1". + * When "set_prevcount" is TRUE first set v:prevcount from v:count. */ void -set_vcount(count, count1) +set_vcount(count, count1, set_prevcount) long count; long count1; + int set_prevcount; { - vimvars[VV_PREVCOUNT].vv_nr = vimvars[VV_COUNT].vv_nr; + if (set_prevcount) + vimvars[VV_PREVCOUNT].vv_nr = vimvars[VV_COUNT].vv_nr; vimvars[VV_COUNT].vv_nr = count; vimvars[VV_COUNT1].vv_nr = count1; } |