On Fri, Dec 19, 2025 at 03:30:39PM +0100, Walter Alejandro Iglesias wrote:
> (src/usr.bin/ssh/sftp.c)
> -----------------------------------------
> const char editor[2];
> 
>       if (!batchmode && isatty(STDIN_FILENO)) {
> 
>               [...]
> 
>               if (el_get(el, EL_EDITOR, editor) == '0')
>                       printf("Editor: %s\n", editor);
> 
>               if (strncmp(editor, "vi", 2) == 0)
>                       el_set(el, EL_BIND, "^[", "vi-command-mode", NULL);
>       }
> 
> ----------------------------------------------------------------------------
> 


The printf() command is for testing.


-- 
Walter

Reply via email to