[gtksourceview/wip/chergert/vim] fix count iteration
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/chergert/vim] fix count iteration
- Date: Thu, 28 Oct 2021 21:42:12 +0000 (UTC)
commit b676c2d5baa917c7ff01a2e666d6d4561b1cc5bf
Author: Christian Hergert <chergert redhat com>
Date: Thu Oct 28 14:42:01 2021 -0700
fix count iteration
gtksourceview/vim/gtk-source-vim-motion.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtksourceview/vim/gtk-source-vim-motion.c b/gtksourceview/vim/gtk-source-vim-motion.c
index 96d69fcf..feb16447 100644
--- a/gtksourceview/vim/gtk-source-vim-motion.c
+++ b/gtksourceview/vim/gtk-source-vim-motion.c
@@ -1370,7 +1370,7 @@ gtk_source_vim_motion_apply (GtkSourceVimMotion *self,
{
goto do_inclusive;
}
- } while (--count > 1);
+ } while (--count > 0);
ret = TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]