Slight cleanup. I don't normally like the ++ operator but it's more readable in this case

This commit is contained in:
Andrew S. Rightenburg 2023-04-04 17:26:03 -04:00
parent 4a411aaaa8
commit b51fd21693

View file

@ -128,13 +128,13 @@ void polonius::pl_window::put_string(string &input, bool and_move_cursor) {
put_char(input.at(i));
if (input.at(i) == '\n') {
attached_text_display.rows = attached_text_display.rows + 1;
attached_text_display.rows = attached_text_display.rows++;
} else {
attached_text_display.cols_in_row[attached_text_display.rows] = attached_text_display.cols_in_row[attached_text_display.rows] + 1;
attached_text_display.cols_in_row[attached_text_display.rows]++;
}
if (attached_text_display.cols_in_row[attached_text_display.rows] == width) {
attached_text_display.rows = attached_text_display.rows + 1;
attached_text_display.rows = attached_text_display.rows++;
}
if (attached_text_display.rows == height) {