Mercurial > vim
changeset 1425:15154710ed57 v7.1.140
updated for version 7.1-140
author | vimboss |
---|---|
date | Sun, 14 Oct 2007 15:16:27 +0000 |
parents | 9dbb57025f25 |
children | c44058ba78bc |
files | src/normal.c src/version.c |
diffstat | 2 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/normal.c +++ b/src/normal.c @@ -690,6 +690,13 @@ getcount: ca.count0 = ca.count0 * 10 + (c - '0'); if (ca.count0 < 0) /* got too large! */ ca.count0 = 999999999L; +#ifdef FEAT_EVAL + /* Set v:count here, when called from main() and not a stuffed + * command, so that v:count can be used in an expression mapping + * right after the count. */ + if (toplevel && stuff_empty()) + set_vcount(ca.count0, ca.count0 == 0 ? 1 : ca.count0); +#endif if (ctrl_w) { ++no_mapping;