[gtksourceview/wip/chergert/vim] use 0 to reset count



commit 210c56c5c21bbe12269842ddfebdf0176f6c4e39
Author: Christian Hergert <chergert redhat com>
Date:   Thu Oct 28 14:31:24 2021 -0700

    use 0 to reset count

 gtksourceview/vim/gtk-source-vim-state.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtksourceview/vim/gtk-source-vim-state.c b/gtksourceview/vim/gtk-source-vim-state.c
index 72003029..f491d5d7 100644
--- a/gtksourceview/vim/gtk-source-vim-state.c
+++ b/gtksourceview/vim/gtk-source-vim-state.c
@@ -787,7 +787,7 @@ gtk_source_vim_state_set_count (GtkSourceVimState *self,
        g_return_if_fail (GTK_SOURCE_IS_VIM_STATE (self));
 
        priv->count = count ? count : 1;
-       priv->count_set = TRUE;
+       priv->count_set = count != 0;
 }
 
 void


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