Merge branch 'obsd-master'

Conflicts:
	utf8.c
This commit is contained in:
Thomas Adam 2017-03-20 13:45:18 +00:00
commit 31ae09efa0
2 changed files with 9 additions and 5 deletions

View File

@ -80,8 +80,8 @@ cmd_show_messages_jobs(struct cmdq_item *item, int blank)
cmdq_print(item, "%s", "");
blank = 0;
}
cmdq_print(item, "Job %u: %s [fd=%d, pid=%d, status=%d]",
n, job->cmd, job->fd, job->pid, job->status);
cmdq_print(item, "Job %u: %s [fd=%d, pid=%ld, status=%d]",
n, job->cmd, job->fd, (long)job->pid, job->status);
n++;
}
return (n != 0);

View File

@ -93,7 +93,7 @@ static const char window_choose_keys_emacs[] = "0123456789"
"abcdefghijklmnoprstuvwxyz"
"ABCDEFGHIJKLMNOPQRSTUVWXYZ";
static const char window_choose_keys_vi[] = "0123456789"
"abcdefhilmnoprstuvwxyz"
"abcdefimnoprstuvwxyz"
"ABCDEFIJKMNOPQRSTUVWXYZ";
static void window_choose_free1(struct window_choose_mode_data *);
@ -563,8 +563,6 @@ window_choose_translate_key(key_code key)
case '\r':
case KEYC_BSPACE:
case ' ':
case KEYC_LEFT:
case KEYC_RIGHT:
case KEYC_LEFT|KEYC_CTRL:
case KEYC_RIGHT|KEYC_CTRL:
case KEYC_MOUSEDOWN1_PANE:
@ -584,12 +582,18 @@ window_choose_translate_key(key_code key)
case '\006': /* C-f */
case KEYC_NPAGE:
return (KEYC_NPAGE);
case 'h':
case KEYC_LEFT:
return (KEYC_LEFT);
case 'j':
case KEYC_DOWN:
return (KEYC_DOWN);
case 'k':
case KEYC_UP:
return (KEYC_UP);
case 'l':
case KEYC_RIGHT:
return (KEYC_RIGHT);
case 'g':
case KEYC_HOME:
return (KEYC_HOME);