mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-07 03:53:30 +08:00
Merge pull request #1861 from dimbleby/goto-definition-column
Fix out-by-one error in column on goto-definition
This commit is contained in:
@@ -213,7 +213,7 @@ Execute(Other files should be jumped to for LSP definition responses):
|
||||
\ 'edit +3 ' . fnameescape(ale#path#Simplify(g:dir . '/completion_dummy_file')),
|
||||
\ ],
|
||||
\ g:expr_list
|
||||
AssertEqual [3, 7], getpos('.')[1:2]
|
||||
AssertEqual [3, 8], getpos('.')[1:2]
|
||||
AssertEqual {}, ale#definition#GetMap()
|
||||
|
||||
Execute(Locations inside the same file should be jumped to without using :edit):
|
||||
@@ -235,7 +235,7 @@ Execute(Locations inside the same file should be jumped to without using :edit):
|
||||
\ [
|
||||
\ ],
|
||||
\ g:expr_list
|
||||
AssertEqual [3, 7], getpos('.')[1:2]
|
||||
AssertEqual [3, 8], getpos('.')[1:2]
|
||||
AssertEqual {}, ale#definition#GetMap()
|
||||
|
||||
Execute(Other files should be jumped to in tabs for LSP definition responses):
|
||||
@@ -258,7 +258,7 @@ Execute(Other files should be jumped to in tabs for LSP definition responses):
|
||||
\ 'tabedit +3 ' . fnameescape(ale#path#Simplify(g:dir . '/completion_dummy_file')),
|
||||
\ ],
|
||||
\ g:expr_list
|
||||
AssertEqual [3, 7], getpos('.')[1:2]
|
||||
AssertEqual [3, 8], getpos('.')[1:2]
|
||||
AssertEqual {}, ale#definition#GetMap()
|
||||
|
||||
Execute(Definition responses with lists should be handled):
|
||||
@@ -289,7 +289,7 @@ Execute(Definition responses with lists should be handled):
|
||||
\ 'edit +3 ' . fnameescape(ale#path#Simplify(g:dir . '/completion_dummy_file')),
|
||||
\ ],
|
||||
\ g:expr_list
|
||||
AssertEqual [3, 7], getpos('.')[1:2]
|
||||
AssertEqual [3, 8], getpos('.')[1:2]
|
||||
AssertEqual {}, ale#definition#GetMap()
|
||||
|
||||
Execute(Definition responses with null response should be handled):
|
||||
|
||||
Reference in New Issue
Block a user