Commit Diff


commit - 86ce72dbe36b318515c45babe875842d0005109f
commit + cf8e07837fb2c3a3b01b490b6485acc75865f7fa
blob - eaa49c78a3af9ee0b7913dfab5e7eefd6c02e1ab
blob + fe4ecd11a67e88de0065617ab124de7a207d81e6
--- wrap.c
+++ wrap.c
@@ -217,7 +217,7 @@ hardwrap_text(struct buffer *buffer, struct line *l, s
 			continue;
 		w = utf8_chwidth(cp);
 		if (cur + w >= width) {
-			if (!push_line(buffer, l, start, lastchar - start, cont))
+			if (!push_line(buffer, l, start, lastchar-start, cont))
 				return 0;
 			cont = L_CONTINUATION;
 			if (dont_wrap_pre)