mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 20:45:14 +00:00
HackStudio: "Go to line" was mixed up about 0/1-based line numbers
This commit is contained in:
parent
d1916700ea
commit
3fa16dfae2
Notes:
sideshowbarker
2024-07-19 11:35:26 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/3fa16dfae24
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
Reference in a new issue