summaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-03-16 19:47:03 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-03-16 19:55:58 +1100
commitf53b10072deeb2923d6b932287c4b39bb7bd389e (patch)
tree3ee1aca2fc7f8eff7632d407f5cf04fd89fb1fe4 /pkg
parent11acac00913cccbcde5f6c6112453adf0dec04ed (diff)
open code in existing window
Diffstat (limited to 'pkg')
-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