aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nvim/plines.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/plines.c b/src/nvim/plines.c
index 2b8cdd4ad9..64dd3ff4d4 100644
--- a/src/nvim/plines.c
+++ b/src/nvim/plines.c
@@ -345,7 +345,7 @@ int win_lbr_chartabsize(chartabsize_T *cts, int *headp)
// needs a break here
if (wp->w_p_lbr && wp->w_p_wrap && wp->w_width_inner != 0) {
char *t = cts->cts_line;
- while (vim_isbreak((uint8_t)(*t))) {
+ while (vim_isbreak((uint8_t)t[0])) {
t++;
}
vcol_start = (colnr_T)(t - cts->cts_line);