Skip to content

Commit 20abc8b

Browse files
committed
Ignore modified flag
1 parent 8adf19c commit 20abc8b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Services/Document.vala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,7 @@ namespace Scratch.Services {
307307
});
308308

309309
source_view.focus_out_event.connect (() => {
310-
if (source_view.buffer.get_modified () &&
311-
Scratch.settings.get_boolean ("strip-trailing-on-save")) {
310+
if (Scratch.settings.get_boolean ("strip-trailing-on-save")) {
312311

313312
strip_trailing_spaces ();
314313
}

0 commit comments

Comments
 (0)