瀏覽代碼

Set to last selection if filter is empty

master
Arun Prakash Jana 7 年之前
父節點
當前提交
e359f60294
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: A75979F35C080412
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. +3
    -3
      nnn.c

+ 3
- 3
nnn.c 查看文件

@@ -1090,9 +1090,7 @@ filterentries(char *path)

redraw(path);
goto end;
case CONTROL('L'):
if (len == 1)
cur = oldcur; // fallthrough
case CONTROL('L'): // fallthrough
case CONTROL('K'): // fallthrough
case CONTROL('_'): // fallthrough
case CONTROL('R'): // fallthrough
@@ -1102,6 +1100,8 @@ filterentries(char *path)
case CONTROL('J'): // fallthrough
case CONTROL('X'): // fallthrough
case CONTROL('Y'):
if (len == 1)
cur = oldcur; // fallthrough
goto end;
default:
/* Reset cur in case it's a repeat search */


Loading…
取消
儲存