Skip to content

Commit

Permalink
After saving, the file is still flagged as modified
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Nov 18, 2016
1 parent f808f57 commit 429c51c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/org/jline/builtins/Nano.java
Original file line number Diff line number Diff line change
Expand Up @@ -1227,6 +1227,7 @@ private boolean save(String name) throws IOException {
}
Files.move(t, newPath, StandardCopyOption.REPLACE_EXISTING);
buffer.file = name;
buffer.dirty = false;
setMessage("Wrote " + buffer.lines.size() + " lines");
return true;
} catch (IOException e) {
Expand Down

0 comments on commit 429c51c

Please sign in to comment.