Skip to content

Commit

Permalink
Ignore matchdelete() error
Browse files Browse the repository at this point in the history
  • Loading branch information
KSR-Yasuda committed Aug 5, 2024
1 parent 30feaaa commit de4a88a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/highlightedput/highlight.vim
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ endfunction

function s:matchdelete_all(matchIDs, ...) abort
let winid = get(a:000, 0, win_getid())
return map(copy(a:matchIDs), { _, matchID -> matchdelete(matchID, winid) })
return map(copy(a:matchIDs), { _, matchID -> execute(printf('call matchdelete(%d, %d)', matchID, winid), 'silent!') })
endfunction


Expand Down

0 comments on commit de4a88a

Please # to comment.