[gtksourceview/wip/chergert/vim] add forward char ctor
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/chergert/vim] add forward char ctor
- Date: Thu, 28 Oct 2021 00:08:13 +0000 (UTC)
commit 4573811f22f48982a9f88ccac1ac60d7ebeeeb17
Author: Christian Hergert <chergert redhat com>
Date: Wed Oct 27 16:43:35 2021 -0700
add forward char ctor
gtksourceview/vim/gtk-source-vim-motion.c | 12 ++++++++++++
gtksourceview/vim/gtk-source-vim-motion.h | 1 +
2 files changed, 13 insertions(+)
---
diff --git a/gtksourceview/vim/gtk-source-vim-motion.c b/gtksourceview/vim/gtk-source-vim-motion.c
index a5dac8fc..d70d78a1 100644
--- a/gtksourceview/vim/gtk-source-vim-motion.c
+++ b/gtksourceview/vim/gtk-source-vim-motion.c
@@ -1433,6 +1433,18 @@ gtk_source_vim_motion_new_previous_line_end (void)
return GTK_SOURCE_VIM_STATE (self);
}
+GtkSourceVimState *
+gtk_source_vim_motion_new_forward_char (void)
+{
+ GtkSourceVimMotion *self;
+
+ self = g_object_new (GTK_SOURCE_TYPE_VIM_MOTION, NULL);
+ self->motion = motion_forward_char;
+ self->inclusivity = EXCLUSIVE;
+
+ return GTK_SOURCE_VIM_STATE (self);
+}
+
GtkSourceVimState *
gtk_source_vim_motion_new_none (void)
{
diff --git a/gtksourceview/vim/gtk-source-vim-motion.h b/gtksourceview/vim/gtk-source-vim-motion.h
index 2748ae0f..3ae0242a 100644
--- a/gtksourceview/vim/gtk-source-vim-motion.h
+++ b/gtksourceview/vim/gtk-source-vim-motion.h
@@ -36,6 +36,7 @@ GtkSourceVimState *gtk_source_vim_motion_new_none (void);
GtkSourceVimState *gtk_source_vim_motion_new_first_char (void);
GtkSourceVimState *gtk_source_vim_motion_new_line_end (void);
GtkSourceVimState *gtk_source_vim_motion_new_previous_line_end (void);
+GtkSourceVimState *gtk_source_vim_motion_new_forward_char (void);
GtkSourceVimState *gtk_source_vim_motion_new_line_start (void);
void gtk_source_vim_motion_set_apply_on_leave (GtkSourceVimMotion *self,
gboolean apply_on_leave);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]