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:
parent
e4c6bf464a
commit
9689eeec2a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user