]> git.mdlowis.com Git - projs/tide.git/commitdiff
fixed a bug with scrolling up on CRLF documents
authorMichael D. Lowis <mike.lowis@gentex.com>
Mon, 1 Oct 2018 15:01:51 +0000 (11:01 -0400)
committerMichael D. Lowis <mike.lowis@gentex.com>
Mon, 1 Oct 2018 15:01:51 +0000 (11:01 -0400)
TODO.md
lib/view.c

diff --git a/TODO.md b/TODO.md
index 8c1bc576c25374fd58813f576ef42963deb594d3..8807eb8df38c3a5f9c0d5d242d7325231785b157 100644 (file)
--- a/TODO.md
+++ b/TODO.md
@@ -2,6 +2,8 @@
 
 ## STAGING
 
+* Font tag should only change font in edit region
+* centering logic in view.c seems broken
 * implement new version of tfetch (plumb)
 * implement tide registrar
 * implement tctl command
@@ -10,6 +12,7 @@
 * mouse selection handling when mouse moves outside region
 * Line - Get the current line number(s) containing the selection
 * refactor selection handling to avoid swapping manually (use buf_selbeg and buf_selend)
+* encode EOL setting in log entries?
 
 ## BACKLOG
 
@@ -18,6 +21,7 @@
 * B2+B1 click executes command with selection as argument
 * implement term program
 * implement pick command
+* implement script for toggling between header and source file
 
 Tags:
 
index 0fc9d892ee063596189dfa20d4eefb8d141e16da..7ba62d9bc01385f2b7949f1f54dc7e01f8681958 100644 (file)
@@ -365,7 +365,7 @@ static void scroll_up(View* view) {
     if (view->index > 0)
         view->index--;
     else if (view->rows[0]->off > 0)
-        resize(view, view->width, view->nvisible, (view->rows[0]->off - 1));
+        resize(view, view->width, view->nvisible, buf_byrune(BUF, view->rows[0]->off, LEFT));
 }
 
 static void scroll_dn(View* view) {