about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2020-06-01 15:36:33 -0500
committerCase Duckworth2020-06-01 15:36:33 -0500
commitd385642ff33e8b8853f4b2df6ec6bf0ca1eb56c6 (patch)
tree97f0279cf6a8835c45a33f84831e5e9d6fc1a894
parentAdd rudimentary history support. (diff)
downloadbollux-d385642ff33e8b8853f4b2df6ec6bf0ca1eb56c6.tar.gz
bollux-d385642ff33e8b8853f4b2df6ec6bf0ca1eb56c6.zip
Fix beginning of history detection
-rwxr-xr-xbollux2
1 files changed, 1 insertions, 1 deletions
diff --git a/bollux b/bollux index 06e5403..ed5c71b 100755 --- a/bollux +++ b/bollux
@@ -663,7 +663,7 @@ history_append() { # history_append URL
663history_back() { 663history_back() {
664 log d "HN=$HN" 664 log d "HN=$HN"
665 ((HN -= 2)) 665 ((HN -= 2))
666 if ((HN <= 0)); then 666 if ((HN < 0)); then
667 HN=0 667 HN=0
668 log e "Beginning of history." 668 log e "Beginning of history."
669 return 1 669 return 1