Blame bless-0.6.3-fix-reloading-file.patch
|
Timotheus Pokorra |
597d1f4 |
From f0f3792f766e187b770c714322e972db75336317 Mon Sep 17 00:00:00 2001
|
|
Timotheus Pokorra |
597d1f4 |
From: Alexandros Frantzis <alf82@freemail.gr>
|
|
Timotheus Pokorra |
597d1f4 |
Date: Thu, 15 Apr 2021 18:41:21 +0300
|
|
Timotheus Pokorra |
597d1f4 |
Subject: [PATCH] gui: Clear selection on revert
|
|
Timotheus Pokorra |
597d1f4 |
|
|
Timotheus Pokorra |
597d1f4 |
The selection may become invalid when reloading the file from disk,
|
|
Timotheus Pokorra |
597d1f4 |
since the file size may have changed.
|
|
Timotheus Pokorra |
597d1f4 |
|
|
Timotheus Pokorra |
597d1f4 |
Fixes #43
|
|
Timotheus Pokorra |
597d1f4 |
---
|
|
Timotheus Pokorra |
597d1f4 |
src/gui/DataView.cs | 1 +
|
|
Timotheus Pokorra |
597d1f4 |
1 file changed, 1 insertion(+)
|
|
Timotheus Pokorra |
597d1f4 |
|
|
Timotheus Pokorra |
597d1f4 |
diff --git a/src/gui/DataView.cs b/src/gui/DataView.cs
|
|
Timotheus Pokorra |
597d1f4 |
index 4455ed1..990ce22 100644
|
|
Timotheus Pokorra |
597d1f4 |
--- a/src/gui/DataView.cs
|
|
Timotheus Pokorra |
597d1f4 |
+++ b/src/gui/DataView.cs
|
|
Timotheus Pokorra |
597d1f4 |
@@ -515,6 +515,7 @@ public void Revert()
|
|
Timotheus Pokorra |
597d1f4 |
cursorRedoDeque.Clear();
|
|
Timotheus Pokorra |
597d1f4 |
cursorUndoDeque.Clear();
|
|
Timotheus Pokorra |
597d1f4 |
|
|
Timotheus Pokorra |
597d1f4 |
+ SetSelection(-1, -1);
|
|
Timotheus Pokorra |
597d1f4 |
MoveCursor(0, 0);
|
|
Timotheus Pokorra |
597d1f4 |
}
|
|
Timotheus Pokorra |
597d1f4 |
|