Skip to content
This repository has been archived by the owner on Aug 29, 2020. It is now read-only.

Commit

Permalink
Fix 'gg' and 'dd' keypresses
Browse files Browse the repository at this point in the history
  • Loading branch information
cjbassi committed Dec 5, 2018
1 parent db57b40 commit 3dee8bc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,6 @@ func eventLoop() {
if previousKey == "g" {
proc.Top()
ui.Render(proc)
previousKey = ""
}
case "G", "<End>":
proc.Bottom()
Expand All @@ -316,7 +315,6 @@ func eventLoop() {
case "d":
if previousKey == "d" {
proc.Kill()
previousKey = ""
}
case "<Tab>":
proc.Tab()
Expand All @@ -325,7 +323,12 @@ func eventLoop() {
proc.ChangeSort(e)
ui.Render(proc)
}
previousKey = e.ID

if previousKey == e.ID {
previousKey = ""
} else {
previousKey = e.ID
}
}
}
}
Expand Down

0 comments on commit 3dee8bc

Please sign in to comment.