Files
vim-ingo-library-mirror/tests/join/t1030-lines-with-empty.vim
Ingo Karkat 5a23caba31 ingo#join#Lines(): Add tests and fix problems
I've discovered an alternative implementation in AdvancedJoiners#QueryJoin#JoinLines() that considered some corner cases that this one would not handle, but the overall implementation is cleaner (and newer) in here. Therefore, add test coverage and port the fixes over to here, and make it correct.
2019-06-04 13:48:57 +02:00

17 lines
358 B
VimL

" Test joining of lines with following empty line.
call append(0, ['plain', ''])
call ingo#join#Lines(1, 1, '')
call append(0, ['4space ', ''])
call ingo#join#Lines(1, 1, '')
call append(0, ["tab\t", ''])
call ingo#join#Lines(1, 1, '')
call append(0, ['softtabstop ', ''])
call ingo#join#Lines(1, 1, '')
call vimtest#SaveOut()
call vimtest#Quit()