mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-27 02:23:15 +01:00
Check for scrolling when _cursor_ is inside region, not number of lines. Duh.
This commit is contained in:
parent
ce5f02fc9e
commit
86b73cec72
4
TODO
4
TODO
@ -40,7 +40,7 @@
|
||||
- Nested sessions over the network, plug-in another tmux as a window/subsession
|
||||
- it would be nice to have multichar commands so you could have C-b K K for
|
||||
kill-window to limit accidental presses
|
||||
- status-fg/status-bg should be to set attributes: bold, etc
|
||||
- status-fg/status-bg should be able to set attributes: bold, etc
|
||||
- show-options command
|
||||
- detach client and other client commands. note that there can only be a
|
||||
"current client" on key presses - these should probably act like
|
||||
@ -66,4 +66,4 @@
|
||||
|
||||
-- For 0.2 --------------------------------------------------------------------
|
||||
- copy and paste
|
||||
- window splitting
|
||||
- window splitting?
|
||||
|
6
input.c
6
input.c
@ -1,4 +1,4 @@
|
||||
/* $Id: input.c,v 1.30 2007-11-09 17:06:01 nicm Exp $ */
|
||||
/* $Id: input.c,v 1.31 2007-11-16 16:28:14 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -673,7 +673,7 @@ input_handle_sequence_dl(struct input_ctx *ictx)
|
||||
return;
|
||||
}
|
||||
|
||||
if (n < s->ry_upper || n > s->ry_lower)
|
||||
if (s->cy < s->ry_upper || s->cy > s->ry_lower)
|
||||
screen_delete_lines(s, s->cy, n);
|
||||
else
|
||||
screen_delete_lines_region(s, s->cy, n);
|
||||
@ -721,7 +721,7 @@ input_handle_sequence_il(struct input_ctx *ictx)
|
||||
log_debug3("il: out of range: %hu", n);
|
||||
return;
|
||||
}
|
||||
if (n < s->ry_upper || n > s->ry_lower)
|
||||
if (s->cy < s->ry_upper || s->cy > s->ry_lower)
|
||||
screen_insert_lines(s, s->cy, n);
|
||||
else
|
||||
screen_insert_lines_region(s, s->cy, n);
|
||||
|
Loading…
Reference in New Issue
Block a user