浏览代码

Fix fzcd at /, minot refactor

master
Arun Prakash Jana 4 年前
父节点
当前提交
c01857cddb
找不到此签名对应的密钥 GPG 密钥 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;


正在加载...
取消
保存