mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 06:48:12 +00:00
HackStudio: "Go to line" was mixed up about 0/1-based line numbers
This commit is contained in:
parent
d1916700ea
commit
3fa16dfae2
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ int main(int argc, char** argv)
|
|||
bool ok;
|
||||
auto line_number = input_box->text_value().to_uint(ok);
|
||||
if (ok) {
|
||||
text_editor->set_cursor(line_number, 0);
|
||||
text_editor->set_cursor(line_number - 1, 0);
|
||||
}
|
||||
}
|
||||
}, text_editor));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue