Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Avoid the edge case at entering drawing ansi but it's actually not ansi
  • Loading branch information
ulwlu authored and koutcher committed Sep 4, 2023
commit dc89bcce0785589e4eb2c3fabc357d3506399dbd
2 changes: 1 addition & 1 deletion src/draw.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ draw_chars_with_ansi(struct view *view, enum line_type type, const char *string,
if (ansi_num > 0)
draw_ansi(view, &ansi_num, ansi_ptrs, max_width, skip);
else {
len = utf8_length(&string, length, skip, &col, view->width, &trimmed, use_tilde, opt_tab_size);
len = utf8_length(&string, length, skip, &col, max_width, &trimmed, use_tilde, opt_tab_size);
waddnstr(view->win, string, len);
}

Expand Down