Skip to content

Commit

Permalink
improve performance for large file
Browse files Browse the repository at this point in the history
improve performance for large file
(still don't know why this func is called for a buf with b:coc_enabled = 0)
  • Loading branch information
zoumi authored Nov 13, 2024
1 parent 6d2e07f commit 5e2f575
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/coc/api.vim
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ endfunction
function! s:funcs.buf_clear_namespace(bufnr, srcId, startLine, endLine) abort
let bufnr = a:bufnr == 0 ? bufnr('%') : a:bufnr
let start = a:startLine + 1
let end = a:endLine == -1 ? len(getbufline(bufnr, 1, '$')) : a:endLine
let end = a:endLine == -1 ? s:buf_line_count(bufnr) : a:endLine
if a:srcId == -1
if has_key(s:buffer_id, a:bufnr)
unlet s:buffer_id[a:bufnr]
Expand Down

0 comments on commit 5e2f575

Please sign in to comment.