[gnome-builder/wip/vim] vim: clear selection before searching.
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/vim] vim: clear selection before searching.
- Date: Wed, 1 Oct 2014 21:31:04 +0000 (UTC)
commit 9114fbcf46e1a0a4cc264969c84b475ee8f553df
Author: Christian Hergert <christian hergert me>
Date: Wed Oct 1 14:22:56 2014 -0700
vim: clear selection before searching.
src/editor/gb-editor-vim.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/editor/gb-editor-vim.c b/src/editor/gb-editor-vim.c
index 9b840a0..cd7b9b1 100644
--- a/src/editor/gb-editor-vim.c
+++ b/src/editor/gb-editor-vim.c
@@ -1226,6 +1226,8 @@ gb_editor_vim_reverse_search (GbEditorVim *vim)
source_view = GB_SOURCE_VIEW (vim->priv->text_view);
+ gb_editor_vim_clear_selection (vim);
+
if (gb_editor_vim_select_current_word (vim, &begin, &end))
{
gchar *text;
@@ -1269,6 +1271,8 @@ gb_editor_vim_search (GbEditorVim *vim)
source_view = GB_SOURCE_VIEW (vim->priv->text_view);
+ gb_editor_vim_clear_selection (vim);
+
if (gb_editor_vim_select_current_word (vim, &begin, &end))
{
gchar *text;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]