tvi: stop in lbuf_postindents() when lbuf_lnnext() fails - neatvi - [fork] simp… | |
git clone git://src.adamsgaard.dk/neatvi | |
Log | |
Files | |
Refs | |
README | |
--- | |
commit e73bb547ae0e1e53e3841978ea84b3f855d3c805 | |
parent f1cad65ba4925b3ce10822dff8565467662d72b4 | |
Author: Ali Gholami Rudi <[email protected]> | |
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(-) | |
--- | |
diff --git a/vi.c b/vi.c | |
t@@ -115,7 +115,8 @@ static void lbuf_postindents(struct lbuf *lb, int *r, int … | |
{ | |
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 d… |