forked from aniani/vim
patch 9.1.1190: C indentation does not detect multibyte labels
Problem: C indentation does not detect multibyte labels Solution: Correctly skip over multibyte characters (Anttoni Erkkilä) closes: #16770 Signed-off-by: Anttoni Erkkilä <anttoni.erkkila@protonmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
ccf2731fd1
commit
f4d87ff888
@@ -109,6 +109,19 @@ func Test_preproc_indent()
|
||||
close!
|
||||
endfunc
|
||||
|
||||
func Test_userlabel_indent()
|
||||
new
|
||||
call setline(1, ['{', 'label:'])
|
||||
normal GV=
|
||||
call assert_equal('label:', getline(2))
|
||||
|
||||
call setline(2, 'läbél:')
|
||||
normal GV=
|
||||
call assert_equal('läbél:', getline(2))
|
||||
|
||||
close!
|
||||
endfunc
|
||||
|
||||
" Test for 'copyindent'
|
||||
func Test_copyindent()
|
||||
new
|
||||
|
Reference in New Issue
Block a user