Catch ValueError, close #180.

This commit is contained in:
Wouter Overmeire
2013-09-04 09:31:31 +02:00
parent 81b752f606
commit f0c46450c9

View File

@@ -436,7 +436,7 @@ def _tabnew(path, options=''):
buf_nr = int(buf_nr) - 1
try:
buf_path = vim.buffers[buf_nr].name
except LookupError:
except (LookupError, ValueError):
# Just do good old asking for forgiveness.
# don't know why this happens :-)
pass