summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pkg/commands/git_commands/file.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/commands/git_commands/file.go b/pkg/commands/git_commands/file.go
index 8744197f0..1837ee4a4 100644
--- a/pkg/commands/git_commands/file.go
+++ b/pkg/commands/git_commands/file.go
@@ -66,7 +66,7 @@ func (self *FileCommands) GetEditCmdStr(filename string, lineNumber int) (string
case "subl":
editCmdTemplate = "{{editor}} {{filename}}:{{line}}"
case "code":
- editCmdTemplate = "{{editor}} --goto {{filename}}:{{line}}"
+ editCmdTemplate = "{{editor}} -r --goto {{filename}}:{{line}}"
}
}
return utils.ResolvePlaceholderString(editCmdTemplate, templateValues), nil