summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMart Raudsepp <leio@gentoo.org>2008-10-28 11:57:46 +0000
committerMart Raudsepp <leio@gentoo.org>2008-10-28 11:57:46 +0000
commitbccee76f2708037617ab9b6f1ea70dc20677c1c1 (patch)
tree7311e4617c3ff0417f3ac866b07bc9255ebba9fe /x11-libs/vte/files
parentUse python_need_rebuild. (diff)
downloadgentoo-2-bccee76f2708037617ab9b6f1ea70dc20677c1c1.tar.gz
gentoo-2-bccee76f2708037617ab9b6f1ea70dc20677c1c1.tar.bz2
gentoo-2-bccee76f2708037617ab9b6f1ea70dc20677c1c1.zip
Fix highlighting on activity, bug 242636
(Portage version: 2.2_rc12/cvs/Linux 2.6.25-gentoo-r4 x86_64)
Diffstat (limited to 'x11-libs/vte/files')
-rw-r--r--x11-libs/vte/files/vte-0.17.4-fix-selecting-on-activity.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/x11-libs/vte/files/vte-0.17.4-fix-selecting-on-activity.patch b/x11-libs/vte/files/vte-0.17.4-fix-selecting-on-activity.patch
new file mode 100644
index 000000000000..5cf9b91acfd6
--- /dev/null
+++ b/x11-libs/vte/files/vte-0.17.4-fix-selecting-on-activity.patch
@@ -0,0 +1,41 @@
+Upstream revision 2134 with useless whitespace change hunks removed:
+
+2008-10-23 Chris Wilson
+
+Bug 557375 – >=vte-0.16.14 breaks highlighting on activity
+
+* src/vte.c (vte_terminal_deselect_all),
+(vte_terminal_extend_selection):
+After the user modifies the selection, copy it to PRIMARY and store
+it on the terminal. This ensures that after a screen redraw, we
+compare the contents of the selected region with the current
+selection, instead of stale data.
+
+--- trunk/src/vte.c 2008/10/23 09:15:37 2133
++++ trunk/src/vte.c 2008/10/23 09:43:21 2134
+@@ -1018,10 +1018,16 @@
+ {
+ if (terminal->pvt->has_selection) {
+ gint sx, sy, ex, ey;
+- terminal->pvt->has_selection = FALSE;
++
+ _vte_debug_print(VTE_DEBUG_SELECTION,
+ "Deselecting all text.\n");
++
++ terminal->pvt->has_selection = FALSE;
++ g_free (terminal->pvt->selection);
++ terminal->pvt->selection = NULL;
++
+ vte_terminal_emit_selection_changed(terminal);
++
+ sx = terminal->pvt->selection_start.x;
+ sy = terminal->pvt->selection_start.y;
+ ex = terminal->pvt->selection_end.x;
+@@ -6510,6 +6514,7 @@
+ terminal->pvt->selection_start.y,
+ terminal->pvt->selection_end.x,
+ terminal->pvt->selection_end.y);
++ vte_terminal_copy_primary(terminal);
+ vte_terminal_emit_selection_changed(terminal);
+ }
+