mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
vim-patch:f449825ae238
runtime(netrw): Update `.netrwbook` immediately on bookmark change (vim/vim#13276)
closes: vim/vim#9738
f449825ae2
Co-authored-by: KSR-Yasuda <31273423+KSR-Yasuda@users.noreply.github.com>
This commit is contained in:
parent
1338140ee3
commit
ac6d8d0087
@ -3469,6 +3469,11 @@ fun! s:NetrwBookHistHandler(chg,curdir)
|
|||||||
echo "bookmarked the current directory"
|
echo "bookmarked the current directory"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
try
|
||||||
|
call s:NetrwBookHistSave()
|
||||||
|
catch
|
||||||
|
endtry
|
||||||
|
|
||||||
elseif a:chg == 1
|
elseif a:chg == 1
|
||||||
" change to the bookmarked directory
|
" change to the bookmarked directory
|
||||||
" call Decho("(user: <".v:count."gb>) change to the bookmarked directory",'~'.expand("<slnum>"))
|
" call Decho("(user: <".v:count."gb>) change to the bookmarked directory",'~'.expand("<slnum>"))
|
||||||
@ -3613,6 +3618,11 @@ fun! s:NetrwBookHistHandler(chg,curdir)
|
|||||||
" call Decho("g:netrw_bookmarklist=".string(g:netrw_bookmarklist),'~'.expand("<slnum>"))
|
" call Decho("g:netrw_bookmarklist=".string(g:netrw_bookmarklist),'~'.expand("<slnum>"))
|
||||||
endif
|
endif
|
||||||
" call Decho("resulting g:netrw_bookmarklist=".string(g:netrw_bookmarklist),'~'.expand("<slnum>"))
|
" call Decho("resulting g:netrw_bookmarklist=".string(g:netrw_bookmarklist),'~'.expand("<slnum>"))
|
||||||
|
|
||||||
|
try
|
||||||
|
call s:NetrwBookHistSave()
|
||||||
|
catch
|
||||||
|
endtry
|
||||||
endif
|
endif
|
||||||
call s:NetrwBookmarkMenu()
|
call s:NetrwBookmarkMenu()
|
||||||
call s:NetrwTgtMenu()
|
call s:NetrwTgtMenu()
|
||||||
|
Loading…
Reference in New Issue
Block a user