[gnome-builder/wip/libide] libide: don't double count for forward/backward char



commit 4c121baa5363fcadc334fdfb34c1f4913c0b8729
Author: Christian Hergert <christian hergert me>
Date:   Wed Mar 11 12:56:28 2015 -0700

    libide: don't double count for forward/backward char

 libide/ide-source-view-movements.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/libide/ide-source-view-movements.c b/libide/ide-source-view-movements.c
index 3f5bc46..60232cb 100644
--- a/libide/ide-source-view-movements.c
+++ b/libide/ide-source-view-movements.c
@@ -1295,13 +1295,11 @@ _ide_source_view_apply_movement (IdeSourceView         *self,
       break;
 
     case IDE_SOURCE_VIEW_MOVEMENT_PREVIOUS_CHAR:
-      for (i = MAX (1, mv.count); i > 0; i--)
-        ide_source_view_movements_previous_char (&mv);
+      ide_source_view_movements_previous_char (&mv);
       break;
 
     case IDE_SOURCE_VIEW_MOVEMENT_NEXT_CHAR:
-      for (i = MAX (1, mv.count); i > 0; i--)
-        ide_source_view_movements_next_char (&mv);
+      ide_source_view_movements_next_char (&mv);
       break;
 
     case IDE_SOURCE_VIEW_MOVEMENT_FIRST_CHAR:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]