mirror of
https://github.com/jarun/nnn.git
synced 2025-03-14 18:54:07 +00:00
Merge pull request #237 from dbotw/endhome
Recognize End/Home keys for editing
This commit is contained in:
commit
87835a561f
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue