aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authornicm <nicm>2018-07-31 11:49:26 +0000
committernicm <nicm>2018-07-31 11:49:26 +0000
commit82776c456e1ad4ba2c9466e90f51179d07a4c9c2 (patch)
tree6b074627554e3f290ef9c310664cb033be660ae3 /tmux.h
parent80bdd898560db81baa1430e0b093b896a09b542e (diff)
downloadrtmux-82776c456e1ad4ba2c9466e90f51179d07a4c9c2.tar.gz
rtmux-82776c456e1ad4ba2c9466e90f51179d07a4c9c2.tar.bz2
rtmux-82776c456e1ad4ba2c9466e90f51179d07a4c9c2.zip
Move struct screen_sel into screen.c and tidy up members that are only
used by copy mode.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h30
1 files changed, 4 insertions, 26 deletions
diff --git a/tmux.h b/tmux.h
index 76ea5a5a..af3dddb9 100644
--- a/tmux.h
+++ b/tmux.h
@@ -644,30 +644,8 @@ struct job {
};
LIST_HEAD(joblist, job);
-/* Screen selection. */
-struct screen_sel {
- int flag;
- int hidden;
-
- int rectflag;
- enum {
- LINE_SEL_NONE,
- LINE_SEL_LEFT_RIGHT,
- LINE_SEL_RIGHT_LEFT,
- } lineflag;
-
- int modekeys;
-
- u_int sx;
- u_int sy;
-
- u_int ex;
- u_int ey;
-
- struct grid_cell cell;
-};
-
/* Virtual screen. */
+struct screen_sel;
struct screen_titles;
struct screen {
char *title;
@@ -688,7 +666,7 @@ struct screen {
bitstr_t *tabs;
- struct screen_sel sel;
+ struct screen_sel *sel;
};
/* Screen write context. */
@@ -2086,8 +2064,8 @@ void screen_set_title(struct screen *, const char *);
void screen_push_title(struct screen *);
void screen_pop_title(struct screen *);
void screen_resize(struct screen *, u_int, u_int, int);
-void screen_set_selection(struct screen *,
- u_int, u_int, u_int, u_int, u_int, struct grid_cell *);
+void screen_set_selection(struct screen *, u_int, u_int, u_int, u_int,
+ u_int, int, struct grid_cell *);
void screen_clear_selection(struct screen *);
void screen_hide_selection(struct screen *);
int screen_check_selection(struct screen *, u_int, u_int);