浏览代码
Merge pull request #237 from dbotw/endhome
Recognize End/Home keys for editing
master
Mischievous Meerkat
GitHub
5 年前
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23
共有
1 个文件被更改,包括
6 次插入 和
0 次删除
-
src/nnn.c
|
|
@@ -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; |
|
|
|
} |
|
|
|