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:
Nicholas Marriott 2009-12-03 22:50:09 +00:00
parent 6c9862662f
commit 15a64b805e
66 changed files with 418 additions and 416 deletions

View File

@ -23,7 +23,7 @@
#include "tmux.h" #include "tmux.h"
/* /*
* List panes on given window.. * List panes on given window.
*/ */
int cmd_list_panes_exec(struct cmd *, struct cmd_ctx *); int cmd_list_panes_exec(struct cmd *, struct cmd_ctx *);

View File

@ -321,10 +321,12 @@ tty_term_find(char *name, int fd, const char *overrides, char **cause)
if (setupterm(name, fd, &error) != OK) { if (setupterm(name, fd, &error) != OK) {
switch (error) { switch (error) {
case 1: case 1:
xasprintf(cause, "can't use hardcopy terminal: %s", name); xasprintf(
cause, "can't use hardcopy terminal: %s", name);
break; break;
case 0: case 0:
xasprintf(cause, "missing or unsuitable terminal: %s", name); xasprintf(
cause, "missing or unsuitable terminal: %s", name);
break; break;
case -1: case -1:
xasprintf(cause, "can't find terminfo database"); xasprintf(cause, "can't find terminfo database");

4
tty.c
View File

@ -1120,8 +1120,8 @@ tty_cursor(struct tty *tty, u_int cx, u_int cy)
change = thisy - cy; /* +ve up, -ve down */ change = thisy - cy; /* +ve up, -ve down */
/* /*
* Try to use VPA if change is larger than absolute or if this change * Try to use VPA if change is larger than absolute or if this
* would cross the scroll region, otherwise use CUU/CUD. * change would cross the scroll region, otherwise use CUU/CUD.
*/ */
if (abs(change) > cy || if (abs(change) > cy ||
(change < 0 && cy - change > tty->rlower) || (change < 0 && cy - change > tty->rlower) ||