diff options
author | Case Duckworth | 2020-06-01 15:36:33 -0500 |
---|---|---|
committer | Case Duckworth | 2020-06-01 15:36:33 -0500 |
commit | d385642ff33e8b8853f4b2df6ec6bf0ca1eb56c6 (patch) | |
tree | 97f0279cf6a8835c45a33f84831e5e9d6fc1a894 | |
parent | Add rudimentary history support. (diff) | |
download | bollux-d385642ff33e8b8853f4b2df6ec6bf0ca1eb56c6.tar.gz bollux-d385642ff33e8b8853f4b2df6ec6bf0ca1eb56c6.zip |
Fix beginning of history detection
-rwxr-xr-x | bollux | 2 |
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 | |||
663 | history_back() { | 663 | history_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 |