forked from aniani/vim
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.
This commit is contained in:
@@ -391,15 +391,13 @@ endfunc
|
||||
|
||||
func Test_edit_13()
|
||||
" Test smartindenting
|
||||
if exists("+smartindent")
|
||||
new
|
||||
set smartindent autoindent
|
||||
call setline(1, ["\tabc"])
|
||||
call feedkeys("A {\<cr>more\<cr>}\<esc>", 'tnix')
|
||||
call assert_equal(["\tabc {", "\t\tmore", "\t}"], getline(1, '$'))
|
||||
set smartindent& autoindent&
|
||||
bwipe!
|
||||
endif
|
||||
new
|
||||
set smartindent autoindent
|
||||
call setline(1, ["\tabc"])
|
||||
call feedkeys("A {\<cr>more\<cr>}\<esc>", 'tnix')
|
||||
call assert_equal(["\tabc {", "\t\tmore", "\t}"], getline(1, '$'))
|
||||
set smartindent& autoindent&
|
||||
bwipe!
|
||||
|
||||
" Test autoindent removing indent of blank line.
|
||||
new
|
||||
|
||||
Reference in New Issue
Block a user