Skip to content

Commit

Permalink
dense-analysis#3442 Fix code fix clangd issue
Browse files Browse the repository at this point in the history
  • Loading branch information
daliusd authored and ivorpeles committed Nov 22, 2020
1 parent 1c95919 commit 789653c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion autoload/ale/codefix.vim
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ function! s:OnReady(
\ },
\ 'end': {
\ 'line': l:nearest_error.end_lnum - 1,
\ 'character': l:nearest_error.end_col - 1,
\ 'character': l:nearest_error.end_col,
\ },
\ },
\ },
Expand Down
4 changes: 2 additions & 2 deletions test/test_codefix.vader
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ Execute(LSP code action requests should be sent):
\ [
\ [0, 'textDocument/codeAction', {
\ 'context': {
\ 'diagnostics': [{'range': {'end': {'character': 5, 'line': 1}, 'start': {'character': 4, 'line': 1}}, 'code': 2304, 'message': 'oops'}]
\ 'diagnostics': [{'range': {'end': {'character': 6, 'line': 1}, 'start': {'character': 4, 'line': 1}}, 'code': 2304, 'message': 'oops'}]
\ },
\ 'range': {'end': {'character': 5, 'line': 1}, 'start': {'character': 4, 'line': 1}},
\ 'textDocument': {'uri': ale#path#ToURI(expand('%:p'))}
Expand Down Expand Up @@ -540,7 +540,7 @@ Execute(LSP code action requests should be sent only for error with code):
\ [
\ [0, 'textDocument/codeAction', {
\ 'context': {
\ 'diagnostics': [{'range': {'end': {'character': 5, 'line': 1}, 'start': {'character': 4, 'line': 1}}, 'code': 2304, 'message': 'oops'}]
\ 'diagnostics': [{'range': {'end': {'character': 6, 'line': 1}, 'start': {'character': 4, 'line': 1}}, 'code': 2304, 'message': 'oops'}]
\ },
\ 'range': {'end': {'character': 5, 'line': 1}, 'start': {'character': 4, 'line': 1}},
\ 'textDocument': {'uri': ale#path#ToURI(expand('%:p'))}
Expand Down

0 comments on commit 789653c

Please sign in to comment.