aboutsummaryrefslogtreecommitdiffstats
path: root/termui/show_bug.go
diff options
context:
space:
mode:
Diffstat (limited to 'termui/show_bug.go')
-rw-r--r--termui/show_bug.go14
1 files changed, 12 insertions, 2 deletions
diff --git a/termui/show_bug.go b/termui/show_bug.go
index f4f1294f..12cb6cf4 100644
--- a/termui/show_bug.go
+++ b/termui/show_bug.go
@@ -523,18 +523,28 @@ func (sb *showBug) left(g *gocui.Gui, v *gocui.View) error {
if sb.isOnSide {
sb.isOnSide = false
sb.selected = ""
+ return sb.selectNext(g, v)
}
- return sb.selectNext(g, v)
+ if sb.selected == "" {
+ return sb.selectNext(g, v)
+ }
+
+ return nil
}
func (sb *showBug) right(g *gocui.Gui, v *gocui.View) error {
if !sb.isOnSide {
sb.isOnSide = true
sb.selected = ""
+ return sb.selectNext(g, v)
}
- return sb.selectNext(g, v)
+ if sb.selected == "" {
+ return sb.selectNext(g, v)
+ }
+
+ return nil
}
func (sb *showBug) focusView(g *gocui.Gui) error {