From 3fa16dfae24bfd7678fd3dcd3873a595c5014238 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 21 Oct 2019 20:33:47 +0200 Subject: [PATCH] HackStudio: "Go to line" was mixed up about 0/1-based line numbers --- DevTools/HackStudio/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DevTools/HackStudio/main.cpp b/DevTools/HackStudio/main.cpp index c3b2e95b55..f77f16ba4e 100644 --- a/DevTools/HackStudio/main.cpp +++ b/DevTools/HackStudio/main.cpp @@ -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));