comparison src/testdir/test_edit.vim @ 28942:6cdf55afaae9 v8.2.4993

patch 8.2.4993: smart/C/lisp indenting is optional Commit: https://github.com/vim/vim/commit/8e145b82464a21ee4fdf7948f04e2a1d505f8bfa Author: Bram Moolenaar <Bram@vim.org> Date: Sat May 21 20:17:31 2022 +0100 patch 8.2.4993: smart/C/lisp indenting is optional Problem: smart/C/lisp indenting is optional, which makes the code more complex, while it only reduces the executable size a bit. Solution: Graduate FEAT_CINDENT, FEAT_SMARTINDENT and FEAT_LISP.
author Bram Moolenaar <Bram@vim.org>
date Sat, 21 May 2022 21:30:04 +0200
parents 7c1a884495e5
children 45c182c4f7e9
comparison
equal deleted inserted replaced
28941:f17de8647585 28942:6cdf55afaae9
389 bw! 389 bw!
390 endfunc 390 endfunc
391 391
392 func Test_edit_13() 392 func Test_edit_13()
393 " Test smartindenting 393 " Test smartindenting
394 if exists("+smartindent") 394 new
395 new 395 set smartindent autoindent
396 set smartindent autoindent 396 call setline(1, ["\tabc"])
397 call setline(1, ["\tabc"]) 397 call feedkeys("A {\<cr>more\<cr>}\<esc>", 'tnix')
398 call feedkeys("A {\<cr>more\<cr>}\<esc>", 'tnix') 398 call assert_equal(["\tabc {", "\t\tmore", "\t}"], getline(1, '$'))
399 call assert_equal(["\tabc {", "\t\tmore", "\t}"], getline(1, '$')) 399 set smartindent& autoindent&
400 set smartindent& autoindent& 400 bwipe!
401 bwipe!
402 endif
403 401
404 " Test autoindent removing indent of blank line. 402 " Test autoindent removing indent of blank line.
405 new 403 new
406 call setline(1, ' foo bar baz') 404 call setline(1, ' foo bar baz')
407 set autoindent 405 set autoindent