mirror of
https://github.com/preservim/nerdtree.git
synced 2024-11-22 14:38:52 +08:00
improve error messages when marks dont exist
This commit is contained in:
parent
a537e1535c
commit
5a4ef66db2
|
@ -2821,7 +2821,7 @@ function! s:OpenMark(name)
|
|||
try
|
||||
let mark = s:GetMarks()[a:name]
|
||||
catch /E716/ "key not in dictionary error
|
||||
call s:Echo("Invalid mark name")
|
||||
call s:Echo("Mark doesnt exist")
|
||||
return
|
||||
endtry
|
||||
|
||||
|
@ -2890,7 +2890,7 @@ function! s:RecallMark(name)
|
|||
try
|
||||
let mark = s:GetMarks()[a:name]
|
||||
catch /E716/ "key not in dictionary error
|
||||
call s:Echo("Invalid mark name")
|
||||
call s:Echo("Mark doesnt exist")
|
||||
return
|
||||
endtry
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user