Skip to content

Commit 90614df

Browse files
committed
Merge branch 'obsd-master' into master
2 parents bedf2bd + ff860e5 commit 90614df

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

screen-redraw.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -604,8 +604,8 @@ screen_redraw_screen(struct client *c)
604604
return;
605605

606606
screen_redraw_set_context(c, &ctx);
607-
tty_update_mode(&c->tty, c->tty.mode, NULL);
608607
tty_sync_start(&c->tty);
608+
tty_update_mode(&c->tty, c->tty.mode, NULL);
609609

610610
if (flags & (CLIENT_REDRAWWINDOW|CLIENT_REDRAWBORDERS)) {
611611
log_debug("%s: redrawing borders", c->name);
@@ -640,8 +640,8 @@ screen_redraw_pane(struct client *c, struct window_pane *wp)
640640
return;
641641

642642
screen_redraw_set_context(c, &ctx);
643-
tty_update_mode(&c->tty, c->tty.mode, NULL);
644643
tty_sync_start(&c->tty);
644+
tty_update_mode(&c->tty, c->tty.mode, NULL);
645645

646646
screen_redraw_draw_pane(&ctx, wp);
647647

tty-keys.c

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -953,11 +953,14 @@ tty_keys_extended_key(struct tty *tty, const char *buf, size_t len,
953953
* Don't allow both KEYC_CTRL and as an implied modifier. Also convert
954954
* C-X into C-x and so on.
955955
*/
956-
if (nkey & KEYC_CTRL){
956+
if (nkey & KEYC_CTRL) {
957957
onlykey = (nkey & KEYC_MASK_KEY);
958-
if (onlykey < 32)
959-
onlykey = (nkey & ~KEYC_CTRL);
960-
else {
958+
if (onlykey < 32) {
959+
if (onlykey != 9)
960+
onlykey = (nkey & ~KEYC_CTRL);
961+
else
962+
onlykey = (9|KEYC_CTRL);
963+
} else {
961964
if (onlykey >= 97 && onlykey <= 122)
962965
onlykey -= 96;
963966
else if (onlykey >= 64 && onlykey <= 95)

0 commit comments

Comments
 (0)