From 5e5d308348ea1eebd7a288fceb999179c6d7d9e2 Mon Sep 17 00:00:00 2001 From: David Halter Date: Mon, 5 Aug 2013 16:32:37 +0430 Subject: [PATCH] remove a deprecated line --- jedi | 2 +- plugin/jedi_vim.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jedi b/jedi index d5d1271..9c258ca 160000 --- a/jedi +++ b/jedi @@ -1 +1 @@ -Subproject commit d5d12716b1d67df9cbaa4d3ea0c90e47c0023208 +Subproject commit 9c258ca897c96aac7c1b51f2689c1adf2d379f6a diff --git a/plugin/jedi_vim.py b/plugin/jedi_vim.py index a355cdb..860779f 100644 --- a/plugin/jedi_vim.py +++ b/plugin/jedi_vim.py @@ -138,7 +138,7 @@ def goto(is_definition=False, is_related_name=False, no_output=False): if d.module_path != vim.current.buffer.name: vim.eval('jedi#new_buffer(%s)' % \ repr(PythonToVimStr(d.module_path))) - vim.current.window.cursor = d.line_nr, d.column + vim.current.window.cursor = d.line, d.column vim.command('normal! zt') # cursor at top of screen else: # multiple solutions @@ -149,7 +149,7 @@ def goto(is_definition=False, is_related_name=False, no_output=False): PythonToVimStr('Builtin ' + d.description))) else: lst.append(dict(filename=PythonToVimStr(d.module_path), - lnum=d.line_nr, col=d.column + 1, + lnum=d.line, col=d.column + 1, text=PythonToVimStr(d.description))) vim.eval('setqflist(%s)' % repr(lst)) vim.eval('jedi#add_goto_window()')