瀏覽代碼

Fix fzcd at /, minot refactor

master
Arun Prakash Jana 4 年之前
父節點
當前提交
c01857cddb
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: A75979F35C080412
共有 2 個文件被更改,包括 6 次插入5 次删除
  1. +5
    -1
      plugins/fzcd
  2. +1
    -4
      src/nnn.c

+ 5
- 1
plugins/fzcd 查看文件

@@ -32,5 +32,9 @@ if [ -n "$sel" ]; then

# Remove "./" prefix if it exists
sel="${sel#./}"
nnn_cd "$PWD/$sel"
if [ "$PWD" = "/" ]; then
nnn_cd "/$sel"
else
nnn_cd "$PWD/$sel"
fi
fi

+ 1
- 4
src/nnn.c 查看文件

@@ -4617,10 +4617,7 @@ static void populate(char *path, char *lastname)

/* Find cur from history */
/* No NULL check for lastname, always points to an array */
if (!*lastname)
move_cursor(0, 0);
else
move_cursor(dentfind(lastname, ndents), 0);
move_cursor(*lastname ? dentfind(lastname, ndents) : 0, 0);

// Force full redraw
last_curscroll = -1;


Loading…
取消
儲存