mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-09 03:43:50 -05:00
fix a bug when the bookmarks are toggled with NERDTreeMinimalUI
This commit is contained in:
@@ -3244,6 +3244,10 @@ function! s:putCursorOnBookmarkTable()
|
|||||||
throw "NERDTree.IllegalOperationError: cant find bookmark table, bookmarks arent active"
|
throw "NERDTree.IllegalOperationError: cant find bookmark table, bookmarks arent active"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if g:NERDTreeMinimalUI
|
||||||
|
return cursor(1, 2)
|
||||||
|
endif
|
||||||
|
|
||||||
let rootNodeLine = s:TreeFileNode.GetRootLineNum()
|
let rootNodeLine = s:TreeFileNode.GetRootLineNum()
|
||||||
|
|
||||||
let line = 1
|
let line = 1
|
||||||
@@ -3253,7 +3257,7 @@ function! s:putCursorOnBookmarkTable()
|
|||||||
throw "NERDTree.BookmarkTableNotFoundError: didnt find the bookmarks table"
|
throw "NERDTree.BookmarkTableNotFoundError: didnt find the bookmarks table"
|
||||||
endif
|
endif
|
||||||
endwhile
|
endwhile
|
||||||
call cursor(line, 0)
|
call cursor(line, 2)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
"FUNCTION: s:putCursorInTreeWin(){{{2
|
"FUNCTION: s:putCursorInTreeWin(){{{2
|
||||||
|
|||||||
Reference in New Issue
Block a user