summaryrefslogtreecommitdiffstats
path: root/src/charset.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/charset.c')
-rw-r--r--src/charset.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/charset.c b/src/charset.c
index 971fefc614..7901479d43 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -1358,13 +1358,13 @@ win_lbr_chartabsize(
head_mid += get_breakindent_win(wp, line);
if (head_mid > 0 && wcol + size > wp->w_width)
{
- // calculate effective window width
+ // Calculate effective window width.
int prev_rem = wp->w_width - wcol;
int width = width2 - head_mid;
if (width <= 0)
width = 1;
- // divide "size - prev_width" by "width", rounding up
+ // Divide "size - prev_rem" by "width", rounding up.
int cnt = (size - prev_rem + width - 1) / width;
added += cnt * head_mid;