[gtksourceview] vim: fix use of subobject



commit 504144d795b1e6751f6c660dcebdc90775f0a84c
Author: Christian Hergert <christian hergert me>
Date:   Wed Feb 2 19:28:02 2022 -0800

    vim: fix use of subobject

 gtksourceview/vim/gtksourcevimjumplist.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gtksourceview/vim/gtksourcevimjumplist.c b/gtksourceview/vim/gtksourcevimjumplist.c
index 7b27ec95..285608cc 100644
--- a/gtksourceview/vim/gtksourcevimjumplist.c
+++ b/gtksourceview/vim/gtksourcevimjumplist.c
@@ -24,6 +24,7 @@
 #include "gtksourcevimjumplist.h"
 
 #define MAX_JUMPS 100
+#define JUMP_INIT {{0}}
 
 typedef struct
 {
@@ -193,7 +194,7 @@ gtk_source_vim_jumplist_previous (GtkSourceVimJumplist *self,
 {
        GtkSourceBuffer *buffer;
        GtkTextIter before;
-       Jump current = {0};
+       Jump current = JUMP_INIT;
        gboolean ret = FALSE;
 
        g_return_val_if_fail (GTK_SOURCE_IS_VIM_JUMPLIST (self), FALSE);
@@ -229,7 +230,7 @@ gtk_source_vim_jumplist_next (GtkSourceVimJumplist *self,
 {
        GtkSourceBuffer *buffer;
        GtkTextIter before;
-       Jump current = {0};
+       Jump current = JUMP_INIT;
        gboolean ret = FALSE;
 
        g_return_val_if_fail (GTK_SOURCE_IS_VIM_JUMPLIST (self), FALSE);


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