Archived
1
Fork 0

Fix a bug

This commit is contained in:
Hadeed 2023-08-26 23:19:09 +05:00
parent 9f365822af
commit 0abb788594

2
kilo.c
View file

@ -181,7 +181,7 @@ void editor_draw_rows() {
if (in_file) {
struct EROW curr_row = E.rows[y + E.row_off];
int max_len = MAX(curr_row.size, E.screencols);
int max_len = MIN(curr_row.size, E.screencols);
rb_append(E.rb, curr_row.s, max_len);
} else if (no_file && y == E.screenrows / 2) {