mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-23 16:14:23 +00:00
HackStudio: "Go to line" was mixed up about 0/1-based line numbers
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user