From 7f175da3fde62bc3d45d373bb4ca28b3e28ce96d Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 22 Feb 2012 22:03:11 +0000 Subject: [PATCH] Selection: handle last buffer character deleted case --- src/selection.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/selection.cc b/src/selection.cc index 24793b2c6..1d4e17658 100644 --- a/src/selection.cc +++ b/src/selection.cc @@ -69,6 +69,9 @@ static void update_iterator(const Modification& modification, iterator = modification.position; else iterator -= length; + + if (iterator.is_end()) + --iterator; } else {