diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-12-25 18:32:29 -0500 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-12-26 00:29:15 -0500 |
commit | 251177b63b591018cf865e809692ba6eb18f7a5c (patch) | |
tree | 853c1d51762b712e84b2d4845c8f00cc1969b364 | |
parent | 23dbe73585fbedfdeb09aac032ffe12ae79f7397 (diff) | |
download | rneovim-251177b63b591018cf865e809692ba6eb18f7a5c.tar.gz rneovim-251177b63b591018cf865e809692ba6eb18f7a5c.tar.bz2 rneovim-251177b63b591018cf865e809692ba6eb18f7a5c.zip |
ex_getln: fix pvs/v781
-rw-r--r-- | src/nvim/ex_getln.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index 35159060b8..e5f5e5ad87 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -3575,7 +3575,7 @@ static int ccheck_abbr(int c) // Do not consider '<,'> be part of the mapping, skip leading whitespace. // Actually accepts any mark. - while (ascii_iswhite(ccline.cmdbuff[spos]) && spos < ccline.cmdlen) { + while (spos < ccline.cmdlen && ascii_iswhite(ccline.cmdbuff[spos])) { spos++; } if (ccline.cmdlen - spos > 5 |