Skip to content

Commit

Permalink
fix code review appointments
Browse files Browse the repository at this point in the history
  • Loading branch information
giovannism20 committed Sep 19, 2023
1 parent e1bd66f commit 87bb342
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ruby_lsp/requests/on_type_formatting.rb
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def auto_indent_after_end_keyword
add_edit_with_text(" ", { line: i, character: 0 })
end

move_cursor_to(@position[:line] - 1, 3)
move_cursor_to(@position[:line], @position[:character])

add_edit_with_text("\n" + (" " * (start_line_indentation + 2)), @position)
end
Expand Down
2 changes: 1 addition & 1 deletion test/requests/on_type_formatting_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ def test_auto_indent_after_end_keyword
newText: " ",
},
{
range: { start: { line: 2, character: 3 }, end: { line: 2, character: 3 } },
range: { start: { line: 3, character: 0 }, end: { line: 3, character: 0 } },
newText: "$0",
},
{
Expand Down

0 comments on commit 87bb342

Please sign in to comment.