Skip to content

Commit

Permalink
Merge pull request #42 from kamykn/fix/delete_match_3
Browse files Browse the repository at this point in the history
fix condition to remove index
  • Loading branch information
kamykn authored May 1, 2020
2 parents b37ab6b + e707cc2 commit 648f664
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/spelunker/matches.vim
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function! spelunker#matches#delete_matches(word_list_for_delete, match_id_dict,
finally
if l:is_ok == 0
let l:del_index = index(values(l:match_id_dict), l:delete_match_id)
if l:del_index != 1
if l:del_index != -1
call remove(l:match_id_dict, keys(l:match_id_dict)[l:del_index])
endif
endif
Expand Down

0 comments on commit 648f664

Please sign in to comment.