[gnome-builder] vim: fix replay of dt command
- From: Sébastien Lafargue <slafargue src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] vim: fix replay of dt command
- Date: Thu, 21 Jan 2016 17:42:11 +0000 (UTC)
commit ddc4338c9a1d4f28568dc93f46000bf27f98f507
Author: heroin <misko herko gmail com>
Date: Mon Jan 4 14:59:45 2016 +0100
vim: fix replay of dt command
https://bugzilla.gnome.org/show_bug.cgi?id=760948
libide/ide-source-view-capture.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/libide/ide-source-view-capture.c b/libide/ide-source-view-capture.c
index e2f3b57..d68a161 100644
--- a/libide/ide-source-view-capture.c
+++ b/libide/ide-source-view-capture.c
@@ -141,9 +141,21 @@ ide_source_view_capture_record_modifier (IdeSourceViewCapture *self,
gunichar modifier)
{
CaptureFrame frame = { 0 };
+ CaptureFrame* last;
g_assert (IDE_IS_SOURCE_VIEW_CAPTURE (self));
+ if (self->frames->len > 0)
+ {
+ last = &g_array_index (self->frames, CaptureFrame, self->frames->len - 1);
+ if (last->modifier == 0)
+ {
+ last->modifier = modifier;
+
+ return;
+ }
+ }
+
frame.type = FRAME_MODIFIER;
frame.count = 0;
frame.modifier = modifier;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]