Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
Fix in formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
lukehoban committed Nov 28, 2015
1 parent 0c3b501 commit 44601a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/goFormat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ export class GoDocumentFormattingEditProvider implements vscode.DocumentFormatti
// insert and replace edits are all relative to the original state
// of the document, so inserts should reset the current line/character
// position to the start.
line = edit.start.line;
character = edit.start.character;
line = start.line;
character = start.character;
edit.text += diffs[i][1];
break;

Expand Down

0 comments on commit 44601a5

Please sign in to comment.