[Xfce4-commits] [apps/mousepad] 01/01: Do not move text cursor when searching backwards (Bug #14942)

noreply at xfce.org noreply at xfce.org
Tue Apr 30 02:48:09 CEST 2019


This is an automated email from the git hooks/post-receive script.

a   n   d   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/mousepad.

commit 905686ee95cdb110368c7d94328e52fc50b6f613
Author: Theo Linkspfeifer <lastonestanding at tutanota.com>
Date:   Fri Apr 26 21:05:05 2019 +0200

    Do not move text cursor when searching backwards (Bug #14942)
---
 mousepad/mousepad-util.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/mousepad/mousepad-util.c b/mousepad/mousepad-util.c
index 1910902..350ee64 100644
--- a/mousepad/mousepad-util.c
+++ b/mousepad/mousepad-util.c
@@ -806,8 +806,6 @@ mousepad_util_search_get_iters (GtkTextBuffer       *buffer,
       tmp = *start;
       *start = *end;
       *end = tmp;
-      /* when searching backwards, we need to start before the selection */
-      gtk_text_iter_backward_char (iter);
     }
 }
 
@@ -942,6 +940,9 @@ mousepad_util_search (GtkTextBuffer       *buffer,
 
       /* set the new search string */
       string = reversed;
+
+      /* start before the selection */
+      gtk_text_iter_backward_char (&iter);
     }
 
   do

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list