diff options
Diffstat (limited to 'Userland/Applications/TextEditor/main.cpp')
-rw-r--r-- | Userland/Applications/TextEditor/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/TextEditor/main.cpp b/Userland/Applications/TextEditor/main.cpp index a2246f2eb8..247f9ac4fd 100644 --- a/Userland/Applications/TextEditor/main.cpp +++ b/Userland/Applications/TextEditor/main.cpp @@ -72,7 +72,7 @@ int main(int argc, char** argv) if (file_to_edit) { // A file name was passed, parse any possible line and column numbers included. FileArgument parsed_argument(file_to_edit); - if (!text_widget.open_file(parsed_argument.file_name())) + if (!text_widget.open_file(parsed_argument.filename())) return 1; text_widget.editor().set_cursor_and_focus_line(parsed_argument.line().value_or(1) - 1, parsed_argument.column().value_or(0)); } |