Remove selection when the text changes

This commit is contained in:
Andrew Hamilton 2022-06-12 17:43:10 +10:00
parent 0d5905113e
commit fb8b796172
2 changed files with 25 additions and 6 deletions

View file

@ -142,7 +142,7 @@ class EditorTestCase(unittest.TestCase):
self.editor.set_mark()
self.editor.cursor_down()
self._assert_change(self.editor.indent, " a\nb\nc", (0, 1))
self.assertIsNotNone(self.editor.mark)
self.assertIsNone(self.editor.mark)
self._set_editor("a\nb\nc", (1, 0))
self.editor.set_mark()
self.editor.cursor_left()