Commit Diff
Diff:
6b91e1041d28dd381315414c359c84c2d1fa2d93
b0266e30b490378eb3f3880d63042a3f8af33ca5
Commit:
b0266e30b490378eb3f3880d63042a3f8af33ca5
Tree:
5c809c904a9f912b5e3fa902cd9a14f79f3b7b89
Author:
Omar Polo <op@omarpolo.com>
Date:
Wed Nov 2 19:49:41 2022 UTC
Message:
account for the prefix width when wrapping lines
commit - 6b91e1041d28dd381315414c359c84c2d1fa2d93
commit + b0266e30b490378eb3f3880d63042a3f8af33ca5
blob - ad32a7ab8e92e8ec3a0888241258284f90dbc46a
blob + ce6dcfb01915c498fe54b1eb3d6d22c4b205dca9
--- u/wrap.c
+++ u/wrap.c
@@ -149,7 +149,7 @@ wrap_text(struct buffer *buffer, const char *prfx, str
flags = L_CONTINUATION;
start = off;
- cur = t;
+ cur = t + prfxwidth;
}
if (off != start)
Omar Polo