]> git.mdlowis.com Git - projs/tide.git/commitdiff
fixed a bug when attempting to scroll tag line with only one line present
authorMichael D. Lowis <mike.lowis@gentex.com>
Tue, 3 Jul 2018 17:56:27 +0000 (13:56 -0400)
committerMichael D. Lowis <mike.lowis@gentex.com>
Tue, 3 Jul 2018 17:56:27 +0000 (13:56 -0400)
TODO.md
lib/view.c

diff --git a/TODO.md b/TODO.md
index 54fab8ede4c3dd2cc26919d3c8a0e10a66e30ffa..32643f041f968d042f4750c57476672f53b02735 100644 (file)
--- a/TODO.md
+++ b/TODO.md
@@ -2,8 +2,9 @@
 
 BUGS:
 
+* Undo/Redo not implemented
+* gap buffer does not handle UTF-8 currently
 * Repeatedly pasting eventually causes an assertion
-* Segfault while scrolling through testdocs/sherlock.txt
 * Middle click on selected command does not execute
 
 Up Next:
index 0d0cfb7716191ab84d07221509b9603944b0597f..492dfdaa815fae53bde786d102121ae51cd8a93f 100644 (file)
@@ -344,6 +344,7 @@ static void scroll_up(View* view) {
 }
 
 static void scroll_dn(View* view) {
+    if (view->nrows <= 1) return;
     size_t nleft = (view->nrows - view->index);
     if (nleft <= view->nvisible) {
         size_t off = view->rows[view->index+1]->off;