tvi: stop in lbuf_postindents() when lbuf_lnnext() fails - neatvi - [fork] simple vi-type editor with UTF-8 support
 (HTM) git clone git://src.adamsgaard.dk/neatvi
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
       ---
 (DIR) commit e73bb547ae0e1e53e3841978ea84b3f855d3c805
 (DIR) parent f1cad65ba4925b3ce10822dff8565467662d72b4
 (HTM) Author: Ali Gholami Rudi <ali@rudi.ir>
       Date:   Wed,  6 May 2015 16:41:23 +0430
       
       vi: stop in lbuf_postindents() when lbuf_lnnext() fails
       
       Diffstat:
         M vi.c                                |       3 ++-
       
       1 file changed, 2 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/vi.c b/vi.c
       t@@ -115,7 +115,8 @@ static void lbuf_postindents(struct lbuf *lb, int *r, int *c)
        {
                lbuf_eol(lb, r, c, -1);
                while (uc_isspace(lbuf_chr(lb, *r, *c)))
       -                lbuf_lnnext(lb, r, c, +1);
       +                if (lbuf_lnnext(lb, r, c, +1))
       +                        break;
        }
        
        static void lbuf_findchar(struct lbuf *lb, int *row, int *col, char *cs, int dir, int n)