Modify IndexError to LookupError in tabnew

This commit is contained in:
Guillaume Poulin
2013-07-03 02:57:55 +08:00
parent dbafc2c0e3
commit ca50a02a86

View File

@@ -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