mirror of
https://github.com/atom/atom.git
synced 2026-01-24 22:38:20 -05:00
Small 🐎 when editing a TextEditor that is no longer pending
This commit is contained in:
committed by
Michelle Tilley
parent
8fff6b2dd0
commit
7643fa04ed
@@ -164,7 +164,7 @@ class TextEditor extends Model
|
||||
@emitter.emit 'did-change-encoding', @getEncoding()
|
||||
@disposables.add @buffer.onDidDestroy => @destroy()
|
||||
@disposables.add @buffer.onDidChangeModified =>
|
||||
@terminatePendingState() if @buffer.isModified()
|
||||
@terminatePendingState() if not @hasTerminatedPendingState and @buffer.isModified()
|
||||
|
||||
@preserveCursorPositionOnBufferReload()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user