diff options
author | Ron Yorston <rmy@pobox.com> | 2021-08-30 08:44:58 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2021-08-30 09:16:01 +0100 |
commit | 420afde92eb83c8c19b856f45491568cfa04a625 (patch) | |
tree | eec8392147bc79ac58d0341be5b23ce97d4f5a21 /init | |
parent | a9fc40467450f5afa9b220bb7c0fa9cade71c7a5 (diff) | |
download | busybox-w32-420afde92eb83c8c19b856f45491568cfa04a625.tar.gz busybox-w32-420afde92eb83c8c19b856f45491568cfa04a625.tar.bz2 busybox-w32-420afde92eb83c8c19b856f45491568cfa04a625.zip |
vi: add fileformats option
Add a limited version of the 'fileformats' option. Only the
'dos,unix' and 'unix,dos' settings are allowed with the former
as default.
When a file is read for editing its format is detected. If it
only has LF line endings it's treated as being of type 'unix'
otherwise its type is 'dos'.
When an empty edit buffer is created it's given the first file
type listed in 'fileformats'.
The file type is stored in the read-only option 'fileformat'
and is used to select the appropriate line endings when the
file is written.
See GitHub issue #220. Adds 168 bytes to the binary.
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions