mirror of
https://github.com/tmux/tmux.git
synced 2025-01-07 16:28:48 +00:00
Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last
time now I've configured emacs to make them displayed in really annoying colours...
This commit is contained in:
parent
6c9862662f
commit
15a64b805e
@ -23,7 +23,7 @@
|
||||
#include "tmux.h"
|
||||
|
||||
/*
|
||||
* List panes on given window..
|
||||
* List panes on given window.
|
||||
*/
|
||||
|
||||
int cmd_list_panes_exec(struct cmd *, struct cmd_ctx *);
|
||||
|
@ -321,10 +321,12 @@ tty_term_find(char *name, int fd, const char *overrides, char **cause)
|
||||
if (setupterm(name, fd, &error) != OK) {
|
||||
switch (error) {
|
||||
case 1:
|
||||
xasprintf(cause, "can't use hardcopy terminal: %s", name);
|
||||
xasprintf(
|
||||
cause, "can't use hardcopy terminal: %s", name);
|
||||
break;
|
||||
case 0:
|
||||
xasprintf(cause, "missing or unsuitable terminal: %s", name);
|
||||
xasprintf(
|
||||
cause, "missing or unsuitable terminal: %s", name);
|
||||
break;
|
||||
case -1:
|
||||
xasprintf(cause, "can't find terminfo database");
|
||||
|
4
tty.c
4
tty.c
@ -1120,8 +1120,8 @@ tty_cursor(struct tty *tty, u_int cx, u_int cy)
|
||||
change = thisy - cy; /* +ve up, -ve down */
|
||||
|
||||
/*
|
||||
* Try to use VPA if change is larger than absolute or if this change
|
||||
* would cross the scroll region, otherwise use CUU/CUD.
|
||||
* Try to use VPA if change is larger than absolute or if this
|
||||
* change would cross the scroll region, otherwise use CUU/CUD.
|
||||
*/
|
||||
if (abs(change) > cy ||
|
||||
(change < 0 && cy - change > tty->rlower) ||
|
||||
|
Loading…
Reference in New Issue
Block a user