comparison src/testdir/test_lispwords.vim @ 29265:9bc63b4f9c33 v8.2.5151

patch 8.2.5151: reading beyond the end of the line with lisp indenting Commit: https://github.com/vim/vim/commit/8eba2bd291b347e3008aa9e565652d51ad638cfa Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jun 22 19:59:28 2022 +0100 patch 8.2.5151: reading beyond the end of the line with lisp indenting Problem: Reading beyond the end of the line with lisp indenting. Solution: Avoid going over the NUL at the end of the line.
author Bram Moolenaar <Bram@vim.org>
date Wed, 22 Jun 2022 21:00:03 +0200
parents 6d3c683466f4
children
comparison
equal deleted inserted replaced
29264:6b6b004c3db4 29265:9bc63b4f9c33
1 " Tests for 'lispwords' settings being global-local 1 " Tests for 'lispwords' settings being global-local.
2 " And other lisp indent stuff.
2 3
3 set nocompatible viminfo+=nviminfo 4 set nocompatible viminfo+=nviminfo
4 5
5 func Test_global_local_lispwords() 6 func Test_global_local_lispwords()
6 setglobal lispwords=foo,bar,baz 7 setglobal lispwords=foo,bar,baz
83 enew! 84 enew!
84 let &cpoptions=save_copt 85 let &cpoptions=save_copt
85 set nolisp 86 set nolisp
86 endfunc 87 endfunc
87 88
89 func Test_lisp_indent_works()
90 " This was reading beyond the end of the line
91 new
92 exe "norm a\tü(\<CR>="
93 set lisp
94 norm ==
95 bwipe!
96 endfunc
97
88 " vim: shiftwidth=2 sts=2 expandtab 98 " vim: shiftwidth=2 sts=2 expandtab