diff options
author | Christian Clason <c.clason@uni-graz.at> | 2023-10-06 09:50:53 +0200 |
---|---|---|
committer | Christian Clason <c.clason@uni-graz.at> | 2023-10-06 10:18:33 +0200 |
commit | ac6d8d008720f80bdbc5f44c6a75aa78c816dc52 (patch) | |
tree | 61a315f63a1e1b9ae18a1ca12f1cbfa5246d11e4 | |
parent | 1338140ee3ea9355a9cc756f77b8fc71fd27eda5 (diff) | |
download | rneovim-ac6d8d008720f80bdbc5f44c6a75aa78c816dc52.tar.gz rneovim-ac6d8d008720f80bdbc5f44c6a75aa78c816dc52.tar.bz2 rneovim-ac6d8d008720f80bdbc5f44c6a75aa78c816dc52.zip |
vim-patch:f449825ae238
runtime(netrw): Update `.netrwbook` immediately on bookmark change (vim/vim#13276)
closes: vim/vim#9738
https://github.com/vim/vim/commit/f449825ae23865437a74ea4140fd32780c02ce43
Co-authored-by: KSR-Yasuda <31273423+KSR-Yasuda@users.noreply.github.com>
-rw-r--r-- | runtime/autoload/netrw.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/runtime/autoload/netrw.vim b/runtime/autoload/netrw.vim index 2ed3e9ca39..22431d89e1 100644 --- a/runtime/autoload/netrw.vim +++ b/runtime/autoload/netrw.vim @@ -3469,6 +3469,11 @@ fun! s:NetrwBookHistHandler(chg,curdir) echo "bookmarked the current directory" endif + try + call s:NetrwBookHistSave() + catch + endtry + elseif a:chg == 1 " change to the bookmarked directory " 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>")) endif " call Decho("resulting g:netrw_bookmarklist=".string(g:netrw_bookmarklist),'~'.expand("<slnum>")) + + try + call s:NetrwBookHistSave() + catch + endtry endif call s:NetrwBookmarkMenu() call s:NetrwTgtMenu() |