summaryrefslogtreecommitdiff
path: root/src/utils/lines.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/lines.cpp')
-rw-r--r--src/utils/lines.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/utils/lines.cpp b/src/utils/lines.cpp
index 484a9de..bae291f 100644
--- a/src/utils/lines.cpp
+++ b/src/utils/lines.cpp
@@ -24,6 +24,11 @@ void render_lines(Line input_lines[], int cursor, int LINES) {
max_line_width = max_value_f(max_line_width, Font::get_chars_width(input_lines[i].line));
}
+ if (LINES <= 15) {
+ min_line = 0;
+ max_line = 15;
+ }
+
for (int i = 0; i < LINES; i++) {
if (cursor > max_line) {
max_line = cursor;