vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 065c35034c86774c4a08f01173cbb745848906d4 parent 2b929beb3f35d9b39e22fde1e1aec7a5b35275fc Author: Randy Palamar <randy@rnpnr.xyz> Date: Wed, 8 May 2024 06:58:01 -0600 drop deprecated option names Diffstat:
| M | sam.c | | | 30 | ++++++++++-------------------- |
1 file changed, 10 insertions(+), 20 deletions(-)
diff --git a/sam.c b/sam.c @@ -333,32 +333,24 @@ static const OptionDef options[] = { VIS_HELP("Number of spaces to display (and insert if `expandtab` is enabled) for a tab") }, [OPTION_SHOW_SPACES] = { - { "showspaces", "show-spaces" }, - VIS_OPTION_TYPE_BOOL|VIS_OPTION_NEED_WINDOW|VIS_OPTION_DEPRECATED, + { "showspaces" }, + VIS_OPTION_TYPE_BOOL|VIS_OPTION_NEED_WINDOW, VIS_HELP("Display replacement symbol instead of a space") - NULL, - "show-spaces" }, [OPTION_SHOW_TABS] = { - { "showtabs", "show-tabs" }, - VIS_OPTION_TYPE_BOOL|VIS_OPTION_NEED_WINDOW|VIS_OPTION_DEPRECATED, + { "showtabs" }, + VIS_OPTION_TYPE_BOOL|VIS_OPTION_NEED_WINDOW, VIS_HELP("Display replacement symbol for tabs") - NULL, - "show-tabs" }, [OPTION_SHOW_NEWLINES] = { - { "shownewlines", "show-newlines" }, - VIS_OPTION_TYPE_BOOL|VIS_OPTION_NEED_WINDOW|VIS_OPTION_DEPRECATED, + { "shownewlines" }, + VIS_OPTION_TYPE_BOOL|VIS_OPTION_NEED_WINDOW, VIS_HELP("Display replacement symbol for newlines") - NULL, - "show-newlines" }, [OPTION_SHOW_EOF] = { - { "showeof", "show-eof" }, - VIS_OPTION_TYPE_BOOL|VIS_OPTION_NEED_WINDOW|VIS_OPTION_DEPRECATED, + { "showeof" }, + VIS_OPTION_TYPE_BOOL|VIS_OPTION_NEED_WINDOW, VIS_HELP("Display replacement symbol for lines after the end of the file") - NULL, - "show-eof" }, [OPTION_STATUSBAR] = { { "statusbar", "sb" }, @@ -396,11 +388,9 @@ static const OptionDef options[] = { VIS_HELP("How to load existing files 'auto', 'read' or 'mmap'") }, [OPTION_CHANGE_256COLORS] = { - { "change256colors", "change-256colors" }, - VIS_OPTION_TYPE_BOOL|VIS_OPTION_DEPRECATED, + { "change256colors" }, + VIS_OPTION_TYPE_BOOL, VIS_HELP("Change 256 color palette to support 24bit colors") - NULL, - "change-256colors" }, [OPTION_LAYOUT] = { { "layout" },