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:
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;
|
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));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue