Merge pull request #237 from dbotw/endhome

Recognize End/Home keys for editing
This commit is contained in:
Mischievous Meerkat 2019-03-25 22:23:13 +05:30 committed by GitHub
commit 87835a561f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -1766,6 +1766,12 @@ static char *xreadline(char *prefill, char *prompt)
--len;
}
break;
case KEY_END:
pos = len;
break;
case KEY_HOME:
pos = 0;
break;
default:
break;
}