aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_getln.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-12-26 07:02:44 +0100
committerGitHub <noreply@github.com>2019-12-26 07:02:44 +0100
commit927a4f24e09e879ae1006aab32ead81985c61865 (patch)
tree5e1ead3a895263522c061d9de733514a86476f41 /src/nvim/ex_getln.c
parent5f1aec5abdb551e5f3035ca054d36580b3233efb (diff)
parent234c4a846bc78b2cc119b72b994b3ac3f401c8c3 (diff)
downloadrneovim-927a4f24e09e879ae1006aab32ead81985c61865.tar.gz
rneovim-927a4f24e09e879ae1006aab32ead81985c61865.tar.bz2
rneovim-927a4f24e09e879ae1006aab32ead81985c61865.zip
Merge #11612 from janlazo/clang-pvs
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r--src/nvim/ex_getln.c2
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