mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 00:20:05 +08:00
fix(bookmarks): fix mn
& mp
key bindings
This commit is contained in:
parent
99738624b4
commit
5816fbbbfa
@ -153,6 +153,23 @@ function! bookmarks#next() abort
|
|||||||
call s:jump_to_bookmark(s:bookmarks[file][lnum])
|
call s:jump_to_bookmark(s:bookmarks[file][lnum])
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
|
else
|
||||||
|
call s:NT.notify('no bookmarks found')
|
||||||
|
endif
|
||||||
|
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! bookmarks#previous() abort
|
||||||
|
let file = s:FILE.unify_path(expand('%'), ':p')
|
||||||
|
|
||||||
|
if has_key(s:bookmarks, file)
|
||||||
|
for lnum in reverse(keys(s:bookmarks[file]))
|
||||||
|
if lnum < line('.')
|
||||||
|
call s:jump_to_bookmark(s:bookmarks[file][lnum])
|
||||||
|
endif
|
||||||
|
endfor
|
||||||
|
else
|
||||||
|
call s:NT.notify('no bookmarks found')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
endfunction
|
endfunction
|
||||||
|
Loading…
Reference in New Issue
Block a user