commit | 60629d642541a089c322e65963c0a77e5f77eb79 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Thu Feb 23 18:08:56 2017 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Thu Feb 23 18:08:56 2017 +0100 |
tree | 1f5a0613727dbebfd43252caaaebed6c4bfa051d | |
parent | 24922ec23360e7ea7c5a803c9edf476bb6395b32 [diff] [blame] |
patch 8.0.0358: invalid memory access in C-indent code Problem: Invalid memory access in C-indent code. Solution: Don't go over end of empty line. (Dominique Pelle, closes #1492)
diff --git a/src/edit.c b/src/edit.c index 25a123e..c4e7ddd 100644 --- a/src/edit.c +++ b/src/edit.c
@@ -8181,7 +8181,8 @@ { if (try_match && *look == keytyped) return TRUE; - ++look; + if (*look != NUL) + ++look; } /*