mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-01-06 03:53:59 +02:00
use actual keys
This commit is contained in:
parent
5638a40007
commit
628404e114
@ -336,9 +336,9 @@ func (gui *Gui) handleOpenFileAtLine() error {
|
|||||||
// again, would be good to use inheritance here (or maybe even composition)
|
// again, would be good to use inheritance here (or maybe even composition)
|
||||||
var filename string
|
var filename string
|
||||||
switch gui.State.MainContext {
|
switch gui.State.MainContext {
|
||||||
case "patchBuilding":
|
case gui.Contexts.PatchBuilding.Context.GetKey():
|
||||||
filename = gui.getSelectedCommitFileName()
|
filename = gui.getSelectedCommitFileName()
|
||||||
case "staging":
|
case gui.Contexts.Staging.Context.GetKey():
|
||||||
file := gui.getSelectedFile()
|
file := gui.getSelectedFile()
|
||||||
if file == nil {
|
if file == nil {
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user