diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-11-19 19:41:13 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-11-19 19:41:13 +0000 |
commit | 2de9b7c7c8791da8853a9a7ca9c467867465b655 (patch) | |
tree | a67f2340c90c8ddee4c4dfd111ee913830e82479 /src/testdir | |
parent | 3ad695328f94e0197e84454f125c7f3464091d0c (diff) |
patch 8.2.3625: illegal memory access when C-indentingv8.2.3625
Problem: Illegal memory access when C-indenting.
Solution: Also set the cursor column.
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_cindent.vim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/testdir/test_cindent.vim b/src/testdir/test_cindent.vim index 3a536c4c89..c097ca766d 100644 --- a/src/testdir/test_cindent.vim +++ b/src/testdir/test_cindent.vim @@ -5314,4 +5314,16 @@ func Test_backslash_at_end_of_line() bwipe! endfunc +func Test_find_brace_backwards() + " this was looking beyond the end of the line + new + norm R/* + norm o0{ + norm o// + norm V{= + call assert_equal(['/*', ' 0{', '//'], getline(1, 3)) + bwipe! +endfunc + + " vim: shiftwidth=2 sts=2 expandtab |