Skip to content

Commit

Permalink
create file added
Browse files Browse the repository at this point in the history
  • Loading branch information
Kacperacy committed Mar 9, 2024
1 parent 8b597a4 commit d552261
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 4 additions & 0 deletions src/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ impl Editor {
}
self.filename = Some(filename.clone());
self.screen.set_filename(Some(filename.clone()));
} else {
File::create(filename).unwrap();
self.filename = Some(filename.clone());
self.screen.set_filename(Some(filename.clone()));
}
}
}
Expand Down
7 changes: 0 additions & 7 deletions test.txt

This file was deleted.

0 comments on commit d552261

Please sign in to comment.