mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-28 16:02:01 +03:00
Honour editInTerminal value when opening a worktree folder
There was no good reason not to do this in the first place.
This commit is contained in:
@ -38,10 +38,9 @@ func (self *FilesHelper) EditFileAtLineAndWait(filename string, lineNumber int)
|
||||
}
|
||||
|
||||
func (self *FilesHelper) OpenDirInEditor(path string) error {
|
||||
cmdStr := self.c.Git().File.GetOpenDirInEditorCmdStr(path)
|
||||
cmdStr, editInTerminal := self.c.Git().File.GetOpenDirInEditorCmdStr(path)
|
||||
|
||||
// Not editing in terminal because surely that's not a thing.
|
||||
return self.callEditor(cmdStr, false)
|
||||
return self.callEditor(cmdStr, editInTerminal)
|
||||
}
|
||||
|
||||
func (self *FilesHelper) callEditor(cmdStr string, editInTerminal bool) error {
|
||||
|
Reference in New Issue
Block a user