Mercurial > vim
comparison src/testdir/test_cindent.vim @ 25897:f2fb5d30cd16 v8.2.3482
patch 8.2.3482: reading beyond end of line ending in quote and backslash
Commit: https://github.com/vim/vim/commit/78e0fa4cf4fcd563c0bc8c87afa54d4f5dc22020
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Oct 5 21:58:53 2021 +0100
patch 8.2.3482: reading beyond end of line ending in quote and backslash
Problem: Reading beyond end of line ending in quote and backslash.
Solution: Check for non-NUL after backslash. (closes https://github.com/vim/vim/issues/8964)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 05 Oct 2021 23:00:05 +0200 |
parents | 08940efa6b4e |
children | 8e92f01f7226 |
comparison
equal
deleted
inserted
replaced
25896:3a3defdbc05c | 25897:f2fb5d30cd16 |
---|---|
5305 | 5305 |
5306 call assert_equal(expected, getline(1, '$')) | 5306 call assert_equal(expected, getline(1, '$')) |
5307 enew! | close | 5307 enew! | close |
5308 endfunc | 5308 endfunc |
5309 | 5309 |
5310 func Test_backslash_at_end_of_line() | |
5311 new | |
5312 exe "norm v>O'\\\<C-m>-" | |
5313 exe "norm \<C-q>=" | |
5314 bwipe! | |
5315 endfunc | |
5316 | |
5310 " vim: shiftwidth=2 sts=2 expandtab | 5317 " vim: shiftwidth=2 sts=2 expandtab |