Re: Lynx starting vi with "strange" -c arg

2006-05-22 Thread Tony Abernethy
Rod.. Whitworth wrote: > > I have used lynx for years as a file browser as well as web browser > (when I can) and it is routine for me to "fix" /etc/lynx.conf to show > me dotfiles. > > Recently I need to inspect lots of text files and sometimes edit a few > so I set vi to be the system editor fo

Re: Lynx starting vi with "strange" -c arg

2006-05-22 Thread Alexander Farber
In /usr/src/usr.bin/vi/common/main.c: ... * Change "+" into "-c$". ... if (argv[0][0] == '+') { if (argv[0][1] == '\0') { argv[0] = strdup("-c$"); On 5/22/06, Alexander Farber <[EMAIL PROTECTED]> wrote: /usr/src/gnu/

Re: Lynx starting vi with "strange" -c arg

2006-05-22 Thread Alexander Farber
/usr/src/gnu/usr.bin/lynx/src/LYEdit.c calls in edit_temporary_file(): char *editor_arg = ""; ... format = "%s +%s%s %s"; HTAddXpand(&command, format, params++, editor); HTAddParam(&command, format, params++, position); HTAddParam(&command, format, params++, edito

Lynx starting vi with "strange" -c arg

2006-05-22 Thread Rod.. Whitworth
I have used lynx for years as a file browser as well as web browser (when I can) and it is routine for me to "fix" /etc/lynx.conf to show me dotfiles. Recently I need to inspect lots of text files and sometimes edit a few so I set vi to be the system editor for lynx. So far so good. When editing