Commit Vladimir's latest cmdedit. I modified it slightly to ensure
parse_prompt() would be called before cmdedit_init(), since cmdedit_init() calls cmdedit_setwidth() which uses cmdedit_prmt_len, which is set by parse_prompt(). Also, added a mod, so very narrow terminals should now wrap properly... This is working very nicely for me -- Vladimir has done some very good work.
This commit is contained in:
3
lash.c
3
lash.c
@@ -854,10 +854,9 @@ static int get_command(FILE * source, char *command)
|
||||
** atexit() handlers and other unwanted stuff to our
|
||||
** child processes (rob@sysgo.de)
|
||||
*/
|
||||
cmdedit_init();
|
||||
cmdedit_read_input(prompt_str, command);
|
||||
free(prompt_str);
|
||||
cmdedit_terminate();
|
||||
free(prompt_str);
|
||||
return 0;
|
||||
#else
|
||||
fputs(prompt_str, stdout);
|
||||
|
Reference in New Issue
Block a user