diff options
Diffstat (limited to 'pkg/gui/line_by_line_panel.go')
-rw-r--r-- | pkg/gui/line_by_line_panel.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/line_by_line_panel.go b/pkg/gui/line_by_line_panel.go index e9cace6d8..7f423f115 100644 --- a/pkg/gui/line_by_line_panel.go +++ b/pkg/gui/line_by_line_panel.go @@ -88,7 +88,7 @@ func (gui *Gui) copySelectedToClipboard() error { selected := state.PlainRenderSelected() gui.c.LogAction(gui.c.Tr.Actions.CopySelectedTextToClipboard) - if err := gui.OSCommand.CopyToClipboard(selected); err != nil { + if err := gui.os.CopyToClipboard(selected); err != nil { return gui.c.Error(err) } @@ -210,7 +210,7 @@ func (gui *Gui) handleOpenFileAtLine() error { // need to look at current index, then work out what my hunk's header information is, and see how far my line is away from the hunk header lineNumber := state.CurrentLineNumber() - if err := gui.editFileAtLine(filename, lineNumber); err != nil { + if err := gui.os.OpenFileAtLine(filename, lineNumber); err != nil { return err } |