Fix #2544 - Completion positions are off by one

This commit is contained in:
w0rp committed 2019-05-30 10:26:17 +01:00
1 parent 4f02edc3f8
commit 27146ade32
2 files changed
+3 -6

No files matched your search

@@ -219,7 +219,7 @@ Execute(The right message should be sent for the initial LSP request):
\ }],
\ [0, 'textDocument/completion', {
\ 'textDocument': {'uri': ale#path#ToURI(expand('%:p'))},
\ 'position': {'line': 0, 'character': 3},
\ 'position': {'line': 0, 'character': 2},
\ }],
\ ],
\ g:message_list
@@ -280,7 +280,7 @@ Execute(Two completion requests shouldn't be sent in a row):
\ }],
\ [0, 'textDocument/completion', {
\ 'textDocument': {'uri': ale#path#ToURI(expand('%:p'))},
\ 'position': {'line': 0, 'character': 3},
\ 'position': {'line': 0, 'character': 2},
\ }],
\ ],
\ g:message_list