Skip to content

Commit

Permalink
Do not affect show subscriptions option while typing sort option.
Browse files Browse the repository at this point in the history
  • Loading branch information
Waldemar Quevedo committed Aug 19, 2015
1 parent e311019 commit f3b8051
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nats-top.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ func StartUI(
cleanExit()
}

if e.Type == ui.EventKey && e.Ch == 's' {
if e.Type == ui.EventKey && e.Ch == 's' && !(waitingLimitOption || waitingSortOption) {
if displaySubscriptions {
displaySubscriptions = false
opts["subs"] = false
Expand Down

0 comments on commit f3b8051

Please sign in to comment.