mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-17 01:42:45 +02:00
support multi word editor config
This commit is contained in:
@ -249,7 +249,9 @@ func (c *OSCommand) EditFile(filename string) (*exec.Cmd, error) {
|
|||||||
return nil, errors.New("No editor defined in $VISUAL, $EDITOR, or git config")
|
return nil, errors.New("No editor defined in $VISUAL, $EDITOR, or git config")
|
||||||
}
|
}
|
||||||
|
|
||||||
return c.PrepareSubProcess(editor, filename), nil
|
splitCmd := str.ToArgv(fmt.Sprintf("%s %s", editor, filename))
|
||||||
|
|
||||||
|
return c.PrepareSubProcess(splitCmd[0], splitCmd[1:]...), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// PrepareSubProcess iniPrepareSubProcessrocess then tells the Gui to switch to it
|
// PrepareSubProcess iniPrepareSubProcessrocess then tells the Gui to switch to it
|
||||||
|
Reference in New Issue
Block a user