mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-06 18:54:44 +08:00
Buffer names seem to be an empty string sometimes and not None
This commit is contained in:
@@ -665,7 +665,7 @@ def new_buffer(path, options='', using_tagstack=False):
|
||||
vim_command(split_options[user_split_option] + " %s" % escape_file_path(path))
|
||||
else:
|
||||
if int(vim_eval("!&hidden && &modified")) == 1:
|
||||
if vim_eval("bufname('%')") is None:
|
||||
if not vim_eval("bufname('%')"):
|
||||
echo_highlight('Cannot open a new buffer, use `:set hidden` or save your buffer')
|
||||
return False
|
||||
else:
|
||||
|
||||
@@ -21,7 +21,7 @@ describe 'goto simple'
|
||||
end
|
||||
|
||||
it 'goto definitions'
|
||||
silent normal \d
|
||||
normal \d
|
||||
Expect line('.') == 1
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user