]> Sergey Matveev's repositories - nnn.git/commitdiff
Show arg to EDITOR, PAGER & SHELL
authorArun Prakash Jana <engineerarun@gmail.com>
Sat, 1 Dec 2018 02:42:34 +0000 (08:12 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Sat, 1 Dec 2018 02:42:34 +0000 (08:12 +0530)
src/nnn.c

index 6885bea535907c3536dbcb1bfbaf686bedc8685f..dbc8556d127add9ebe5163a49d1b8a2bb9e01b21 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -2116,15 +2116,15 @@ static int show_help(char *path)
        if (getenv("PWD"))
                dprintf(fd, "PWD: %s\n", getenv("PWD"));
        if (getenv("SHELL"))
-               dprintf(fd, "SHELL: %s\n", shell);
+               dprintf(fd, "SHELL: %s %s\n", shell, shell_arg);
        if (getenv("SHLVL"))
                dprintf(fd, "SHLVL: %s\n", getenv("SHLVL"));
        if (getenv("VISUAL"))
-               dprintf(fd, "VISUAL: %s\n", editor);
+               dprintf(fd, "VISUAL: %s %s\n", editor, editor_arg);
        else if (getenv("EDITOR"))
-               dprintf(fd, "EDITOR: %s\n", editor);
+               dprintf(fd, "EDITOR: %s %s\n", editor, editor_arg);
        if (getenv("PAGER"))
-               dprintf(fd, "PAGER: %s\n", pager);
+               dprintf(fd, "PAGER: %s %s\n", pager, pager_arg);
 
        dprintf(fd, "\nVersion: %s\n%s\n", VERSION, GENERAL_INFO);
        close(fd);