runtime(netrw): Update .netrwbook immediately on bookmark change (#13276)
closes: #9738 Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@ -3516,6 +3516,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>"))
|
||||||
@ -3660,6 +3665,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()
|
||||||
|
|||||||
Reference in New Issue
Block a user