shithub: orca

Download patch

ref: 764516f089f65cd15f474f9fc84f5d495a9f8d41
parent: 0e8931941d2789405a607986ab78e455e005f5a6
author: cancel <cancel@cancel.fm>
date: Tue Dec 11 16:02:52 EST 2018

Fix comparison mistake

--- a/tui_main.c
+++ b/tui_main.c
@@ -1107,7 +1107,7 @@
   } else {
     visual_coord += (Usz)scroll_offset;
   }
-  if (visual_coord > field_len)
+  if (visual_coord >= field_len)
     visual_coord = field_len - 1;
   return visual_coord;
 }