[gnome-builder] vim: Fix off-by-one error in '%' selection
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] vim: Fix off-by-one error in '%' selection
- Date: Sat, 31 Jan 2015 16:42:26 +0000 (UTC)
commit 4a0448f28b2d16298287229c6526d5e2875abd20
Author: Florian Müllner <fmuellner gnome org>
Date: Thu Oct 9 21:36:01 2014 +0200
vim: Fix off-by-one error in '%' selection
src/vim/gb-source-vim.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/vim/gb-source-vim.c b/src/vim/gb-source-vim.c
index cf7bbfc..be4a6f5 100644
--- a/src/vim/gb-source-vim.c
+++ b/src/vim/gb-source-vim.c
@@ -1393,6 +1393,8 @@ gb_source_vim_move_matching_bracket (GbSourceVim *vim)
{
if (has_selection)
{
+ if (is_forward)
+ gtk_text_iter_forward_char (&iter);
gb_source_vim_select_range (vim, &iter, &selection);
gb_source_vim_ensure_anchor_selected (vim);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]