1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 20:10:05 +08:00

Fix uniquify_lines function

This commit is contained in:
Shidong Wang 2021-04-10 22:16:45 +08:00
parent e4c6bf464a
commit 9689eeec2a

View File

@ -619,8 +619,8 @@ function! s:uniquify_lines(visual, ignorecase) abort
let end_line = line("'>")
let rst = []
for l in range(start_line, end_line)
if index(rst, getline(l)) ==# -1
call add(rst, getline(l), 0, a:ignorecase)
if index(rst, getline(l), 0, a:ignorecase) ==# -1
call add(rst, getline(l))
endif
endfor
call s:BUFFER.buf_set_lines(bufnr('.'), start_line-1 , end_line, 0, rst)