• merge vi_reset() and edit_reset() into x_vi() to allow for following:
• fix vi mode (which, however, is officially orphaned) multi-line $PS1 by using a similar algorithm for prompt skipping as emacs mode (changing the meaning of prompt_trunc variable and using prompt_redraw, just even more efficiently than vi mode); reported by asarch via IRC • fix multi-line prompts if last line is “too large” by using emacs mode algorithm of just internally appending a newline, while here ☺ this even saves us having to re-add the prompt_skip variable… WARNING: this is only barely tested, as almost nobody ever uses vi mode ⇒ test yourself, there may be bugs (e.g. off-by-ones); already known is that the vi input line editing mode is NOT multibyte safe…
This commit is contained in:
4
sh.h
4
sh.h
@ -100,9 +100,9 @@
|
||||
#define __SCCSID(x) __IDSTRING(sccsid,x)
|
||||
|
||||
#ifdef EXTERN
|
||||
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.230 2008/08/02 17:45:12 tg Exp $");
|
||||
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.231 2008/09/14 20:24:59 tg Exp $");
|
||||
#endif
|
||||
#define MKSH_VERSION "R35 2008/08/02"
|
||||
#define MKSH_VERSION "R35 2008/09/14"
|
||||
|
||||
#ifndef MKSH_INCLUDES_ONLY
|
||||
|
||||
|
Reference in New Issue
Block a user