Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.1
vte2
vte-0.28.2-paste-fix.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File vte-0.28.2-paste-fix.patch of Package vte2
From ede5726a45cd97f212622b59c162ec8b07b09dd4 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi <kevin@scrye.com> Date: Sun, 29 Jun 2014 13:14:30 -0600 Subject: Add patch to fix bracketed paste. Fixes bug #1114301 References: rh#1114301 bgo#729533 deb#734571 Upstream: dead Fixes adding extra characters when pasting to terminal --- vte-0.28.2-paste-fix.diff | 71 +++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 71 insertions(+), 0 deletions(-) create mode 100644 vte-0.28.2-paste-fix.diff diff --git a/vte-0.28.2-paste-fix.diff b/vte-0.28.2-paste-fix.diff new file mode 100644 index 0000000..cc51ead --- /dev/null +++ b/vte-0.28.2-paste-fix.diff @@ -0,0 +1,71 @@ +diff -ur vte-0.28.2.orig/src/vte.c vte-0.28.2/src/vte.c +--- vte-0.28.2.orig/src/vte.c 2011-08-29 00:31:45.000000000 +0300 ++++ vte-0.28.2/src/vte.c 2014-06-26 04:20:52.409371214 +0300 +@@ -5806,10 +5806,10 @@ + p++; + } + } +- if (terminal->pvt->screen->bracketed_paste_mode) ++ if (terminal->pvt->bracketed_paste_mode) + vte_terminal_feed_child(terminal, "\e[200~", -1); + vte_terminal_feed_child(terminal, paste, length); +- if (terminal->pvt->screen->bracketed_paste_mode) ++ if (terminal->pvt->bracketed_paste_mode) + vte_terminal_feed_child(terminal, "\e[201~", -1); + g_free(paste); + } +@@ -14065,14 +14065,12 @@ + pvt->normal_screen.linefeed_mode = FALSE; + pvt->normal_screen.origin_mode = FALSE; + pvt->normal_screen.reverse_mode = FALSE; +- pvt->normal_screen.bracketed_paste_mode = FALSE; + pvt->alternate_screen.scrolling_restricted = FALSE; + pvt->alternate_screen.sendrecv_mode = TRUE; + pvt->alternate_screen.insert_mode = FALSE; + pvt->alternate_screen.linefeed_mode = FALSE; + pvt->alternate_screen.origin_mode = FALSE; + pvt->alternate_screen.reverse_mode = FALSE; +- pvt->alternate_screen.bracketed_paste_mode = FALSE; + pvt->cursor_visible = TRUE; + /* Reset the encoding. */ + vte_terminal_set_encoding(terminal, NULL); +@@ -14102,6 +14100,8 @@ + pvt->mouse_last_y = 0; + /* Clear modifiers. */ + pvt->modifiers = 0; ++ /* Reset miscellaneous stuff. */ ++ pvt->bracketed_paste_mode = FALSE; + /* Cause everything to be redrawn (or cleared). */ + vte_terminal_maybe_scroll_to_bottom(terminal); + _vte_invalidate_all(terminal); +diff -ur vte-0.28.2.orig/src/vte-private.h vte-0.28.2/src/vte-private.h +--- vte-0.28.2.orig/src/vte-private.h 2011-08-17 00:52:48.000000000 +0300 ++++ vte-0.28.2/src/vte-private.h 2014-06-26 04:20:52.410371214 +0300 +@@ -219,7 +219,6 @@ + gboolean sendrecv_mode; /* sendrecv mode */ + gboolean insert_mode; /* insert mode */ + gboolean linefeed_mode; /* linefeed mode */ +- gboolean bracketed_paste_mode; + struct vte_scrolling_region { + int start, end; + } scrolling_region; /* the region we scroll in */ +@@ -274,6 +273,7 @@ + gboolean text_modified_flag; + gboolean text_inserted_flag; + gboolean text_deleted_flag; ++ gboolean bracketed_paste_mode; + + /* Scrolling options. */ + gboolean scroll_background; +diff -ur vte-0.28.2.orig/src/vteseq.c vte-0.28.2/src/vteseq.c +--- vte-0.28.2.orig/src/vteseq.c 2014-06-26 04:08:49.998358634 +0300 ++++ vte-0.28.2/src/vteseq.c 2014-06-26 04:34:00.214384933 +0300 +@@ -737,7 +737,7 @@ + GINT_TO_POINTER(TRUE), + NULL, NULL}, + /* 2004: Bracketed paste mode. */ +- {2004, &terminal->pvt->screen->bracketed_paste_mode, NULL, NULL, ++ {2004, &terminal->pvt->bracketed_paste_mode, NULL, NULL, + GINT_TO_POINTER(FALSE), + GINT_TO_POINTER(TRUE), + NULL, NULL,}, cgit v0.12
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor