Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Don't save to existing location if not modified #94

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/text-buffer.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -1218,6 +1218,8 @@ class TextBuffer

# Public: Save the buffer.
save: (options) ->
return unless @isModified()

@saveAs(@getPath(), options)

# Public: Save the buffer at a specific path.
Expand Down