mirror of
https://github.com/sheumann/hush.git
synced 2024-12-28 22:30:05 +00:00
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:
parent
ee87ebf381
commit
88adfcd178
@ -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)"
|
||||||
|
619
editors/vi.c
619
editors/vi.c
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user