mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:28:12 +00:00
TextEditor: Open files with ReadOnly when we're just reading them
This commit is contained in:
parent
c343e9a4fd
commit
71840c1bf4
2 changed files with 2 additions and 2 deletions
|
@ -107,7 +107,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);
|
||||
auto file = Core::File::open(file_to_edit_full_path, Core::OpenMode::ReadWrite);
|
||||
auto file = Core::File::open(file_to_edit_full_path, Core::OpenMode::ReadOnly);
|
||||
|
||||
if (file.is_error())
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue