vi: change MAX_LINELEN meaning: now it is the biggest supported

screen wigth. Introduce MAX_TABSTOP and MAX_INPUT_LEN. Fix redraw
of very long lines and cursor movement past NULs.
This commit is contained in:
Denis Vlasenko 2007-12-22 15:40:13 +00:00
parent ee87ebf381
commit 88adfcd178
2 changed files with 310 additions and 318 deletions

View File

@ -90,14 +90,13 @@ config VI
you may wish to use something else. you may wish to use something else.
config FEATURE_VI_MAX_LEN config FEATURE_VI_MAX_LEN
int "Maximum line length in vi" int "Maximum screen width in vi"
range 256 16384 range 256 16384
default 1024 default 4096
depends on VI depends on VI
help help
vi uses on-stack buffers for intermediate line buffers. Contrary to what you may think, this is not eating much.
You may want to decrease this parameter if your target machine Make it smaller than 4k only if you are very limited on memory.
benefits from smaller stack usage.
config FEATURE_VI_COLON config FEATURE_VI_COLON
bool "Enable \":\" colon commands (no \"ex\" mode)" bool "Enable \":\" colon commands (no \"ex\" mode)"

File diff suppressed because it is too large Load Diff