Skip to content

Commit

Permalink
commit 3440021
Browse files Browse the repository at this point in the history
3440021 fix(ui): use keepalt on rename_file
ebb3099 fix(fileSystemWatcher): fix onDidRename fire twice
  • Loading branch information
chemzqm committed Jul 31, 2022
1 parent 52032ad commit be514c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions autoload/coc/ui.vim
Original file line number Diff line number Diff line change
Expand Up @@ -343,11 +343,7 @@ function! coc#ui#rename_file(oldPath, newPath, write) abort
execute 'keepalt tab drop '.fnameescape(bufname(bufnr))
let winid = win_getid()
endif
if exists('*nvim_buf_set_name')
call nvim_buf_set_name(bufnr, bufname)
else
call coc#compat#execute(winid, 'file '.fnameescape(bufname), 'silent')
endif
call coc#compat#execute(winid, 'keepalt file '.fnameescape(bufname), 'silent')
call coc#compat#execute(winid, 'doautocmd BufEnter')
if a:write
call coc#compat#execute(winid, 'noa write!', 'silent')
Expand Down
4 changes: 2 additions & 2 deletions build/index.js

Large diffs are not rendered by default.

0 comments on commit be514c7

Please sign in to comment.