summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_cindent.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-10-05 21:58:53 +0100
committerBram Moolenaar <Bram@vim.org>2021-10-05 21:58:53 +0100
commit78e0fa4cf4fcd563c0bc8c87afa54d4f5dc22020 (patch)
treef1fe10b941628fde42efa4e489fe9b2310888624 /src/testdir/test_cindent.vim
parent2e258bd79f403bcccb1336bea70803957a83808f (diff)
patch 8.2.3482: reading beyond end of line ending in quote and backslashv8.2.3482
Problem: Reading beyond end of line ending in quote and backslash. Solution: Check for non-NUL after backslash. (closes #8964)
Diffstat (limited to 'src/testdir/test_cindent.vim')
-rw-r--r--src/testdir/test_cindent.vim7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/testdir/test_cindent.vim b/src/testdir/test_cindent.vim
index 5926408d2e..3a536c4c89 100644
--- a/src/testdir/test_cindent.vim
+++ b/src/testdir/test_cindent.vim
@@ -5307,4 +5307,11 @@ func Test_cindent_pragma()
enew! | close
endfunc
+func Test_backslash_at_end_of_line()
+ new
+ exe "norm v>O'\\\<C-m>-"
+ exe "norm \<C-q>="
+ bwipe!
+endfunc
+
" vim: shiftwidth=2 sts=2 expandtab