forked from VimPlug/jedi-vim
Modify IndexError to LookupError in tabnew
This commit is contained in:
1 parent
dbafc2c0e3
commit
ca50a02a86
1 file changed
+1
-1
+1
-1
@@ -324,7 +324,7 @@ def tabnew(path):
|
||||
buf_nr = int(buf_nr) - 1
|
||||
try:
|
||||
buf_path = vim.buffers[buf_nr].name
|
||||
except IndexError:
|
||||
except LookupError:
|
||||
# Just do good old asking for forgiveness.
|
||||
# don't know why this happens :-)
|
||||
pass
|
||||
|
||||
Reference in new issue
Block a user