1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 22:17:42 +00:00

HackStudio: "Go to line" was mixed up about 0/1-based line numbers

This commit is contained in:
Andreas Kling 2019-10-21 20:33:47 +02:00
parent d1916700ea
commit 3fa16dfae2

View file

@ -75,7 +75,7 @@ int main(int argc, char** argv)
bool ok; bool ok;
auto line_number = input_box->text_value().to_uint(ok); auto line_number = input_box->text_value().to_uint(ok);
if (ok) { if (ok) {
text_editor->set_cursor(line_number, 0); text_editor->set_cursor(line_number - 1, 0);
} }
} }
}, text_editor)); }, text_editor));