mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Change pasting to bypass the output key processing entirely and write
what was originally received. Fixes problems with pasted text being interpreted as extended keys reported by Mark Kelly.
This commit is contained in:
13
tmux.h
13
tmux.h
@ -1311,8 +1311,7 @@ struct session {
|
||||
|
||||
struct options *options;
|
||||
|
||||
#define SESSION_PASTING 0x1
|
||||
#define SESSION_ALERTED 0x2
|
||||
#define SESSION_ALERTED 0x1
|
||||
int flags;
|
||||
|
||||
u_int attached;
|
||||
@ -1390,8 +1389,11 @@ struct mouse_event {
|
||||
|
||||
/* Key event. */
|
||||
struct key_event {
|
||||
key_code key;
|
||||
struct mouse_event m;
|
||||
key_code key;
|
||||
struct mouse_event m;
|
||||
|
||||
char *buf;
|
||||
size_t len;
|
||||
};
|
||||
|
||||
/* Terminal definition. */
|
||||
@ -1806,6 +1808,7 @@ struct client {
|
||||
|
||||
struct timeval creation_time;
|
||||
struct timeval activity_time;
|
||||
struct timeval last_activity_time;
|
||||
|
||||
struct environ *environ;
|
||||
struct format_job_tree *jobs;
|
||||
@ -1872,6 +1875,7 @@ struct client {
|
||||
#define CLIENT_WINDOWSIZECHANGED 0x400000000ULL
|
||||
#define CLIENT_CLIPBOARDBUFFER 0x800000000ULL
|
||||
#define CLIENT_BRACKETPASTING 0x1000000000ULL
|
||||
#define CLIENT_ASSUMEPASTING 0x2000000000ULL
|
||||
#define CLIENT_ALLREDRAWFLAGS \
|
||||
(CLIENT_REDRAWWINDOW| \
|
||||
CLIENT_REDRAWSTATUS| \
|
||||
@ -3097,6 +3101,7 @@ void window_pane_reset_mode_all(struct window_pane *);
|
||||
int window_pane_key(struct window_pane *, struct client *,
|
||||
struct session *, struct winlink *, key_code,
|
||||
struct mouse_event *);
|
||||
void window_pane_paste(struct window_pane *, char *, size_t);
|
||||
int window_pane_visible(struct window_pane *);
|
||||
int window_pane_exited(struct window_pane *);
|
||||
u_int window_pane_search(struct window_pane *, const char *, int,
|
||||
|
Reference in New Issue
Block a user