Skip to content

Commit

Permalink
fix bug with modified flag being 1 redraw behind
Browse files Browse the repository at this point in the history
  • Loading branch information
halvarsson committed Apr 8, 2023
1 parent b3bc345 commit 62edd4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ShowEditorCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ private void UpdatePosition()
{
cursorStatus.Title = string.Empty;
}
if (textEditor.modified == true && !fileNameStatus.Title.EndsWith("*") && fileNameStatus.Title != "Unsaved")
if ((textEditor.IsDirty == true || textEditor.modified == true) && !fileNameStatus.Title.EndsWith("*") && fileNameStatus.Title != "Unsaved")
{
fileNameStatus.Title += "*";
}
Expand Down

0 comments on commit 62edd4c

Please sign in to comment.