[gnome-builder/wip/vim] vim: remove unnecessary selection expansion
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/vim] vim: remove unnecessary selection expansion
- Date: Tue, 30 Sep 2014 06:44:47 +0000 (UTC)
commit 874547e199f2df85be5a3b7909a969f9275994b5
Author: Christian Hergert <christian hergert me>
Date: Mon Sep 29 23:44:34 2014 -0700
vim: remove unnecessary selection expansion
We now select the trailing \n when doing line selection, so this shouldn't
be needed so much anymore.
src/editor/gb-editor-vim.c | 7 -------
1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/src/editor/gb-editor-vim.c b/src/editor/gb-editor-vim.c
index 7c022d4..eebe3fc 100644
--- a/src/editor/gb-editor-vim.c
+++ b/src/editor/gb-editor-vim.c
@@ -508,13 +508,6 @@ gb_editor_vim_delete_selection (GbEditorVim *vim)
gtk_clipboard_set_text (clipboard, text, -1);
g_free (text);
- /*
- * If this selection is an entire line, delete the trailing newline as
- * VIM does in both `v` and `V` selection modes.
- */
- if (gtk_text_iter_starts_line (&begin) && gtk_text_iter_ends_line (&end))
- gtk_text_iter_forward_char (&end);
-
gtk_text_buffer_begin_user_action (buffer);
gtk_text_buffer_delete (buffer, &begin, &end);
gtk_text_buffer_end_user_action (buffer);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]