diff options
Diffstat (limited to 'nnn.c')
-rw-r--r-- | nnn.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -2726,9 +2726,15 @@ nochange: printprompt("key: "); tmp = readinput(); clearprompt(); - if (tmp == NULL) + if (tmp == NULL || tmp[0] == '\0') break; + /* Interpret ~, - and & keys */ + if ((tmp[1] == '\0') && (tmp[0] == '~' || tmp[0] == '-' || tmp[0] == '&')) { + presel = tmp[0]; + goto begin; + } + if (get_bm_loc(tmp, newpath) == NULL) { printmsg(messages[STR_INVBM_ID]); goto nochange; |