aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandy Palamar <palamar@ualberta.ca>2023-08-11 21:46:37 -0600
committerRandy Palamar <palamar@ualberta.ca>2023-08-24 20:43:48 -0600
commita35e7ea9619efbb8fb8655bd80374199911d8404 (patch)
tree23eaef28fa5d66622243863caa0fd5267c6b7aff
parent3a93220f7589ad4a198a0bc654682f696673a368 (diff)
downloadvis-a35e7ea9619efbb8fb8655bd80374199911d8404.tar.gz
vis-a35e7ea9619efbb8fb8655bd80374199911d8404.tar.xz
sam.c: rename a number of options to match lua api
-rw-r--r--man/vis.18
-rw-r--r--sam.c10
2 files changed, 9 insertions, 9 deletions
diff --git a/man/vis.1 b/man/vis.1
index 6dd1385..72e67e0 100644
--- a/man/vis.1
+++ b/man/vis.1
@@ -1393,16 +1393,16 @@ section.
.It Cm syntax Op Cm auto
Syntax highlighting lexer to use, name without file extension.
.
-.It Cm show-tabs Op Cm off
+.It Cm showtabs Op Cm off
Whether to display replacement symbol instead of tabs.
.
-.It Cm show-newlines Op Cm off
+.It Cm shownewlines Op Cm off
Whether to display replacement symbol instead of newlines.
.
-.It Cm show-spaces Op Cm off
+.It Cm showspaces Op Cm off
Whether to display replacement symbol instead of blank cells.
.
-.It Cm show-eof Op Cm on
+.It Cm showeof Op Cm on
Whether to display replacement symbol for lines after the end of the file.
.
.It Cm savemethod Op Ar auto
diff --git a/sam.c b/sam.c
index 60d204e..a1e120c 100644
--- a/sam.c
+++ b/sam.c
@@ -332,22 +332,22 @@ static const OptionDef options[] = {
VIS_HELP("Number of spaces to display (and insert if `expandtab` is enabled) for a tab")
},
[OPTION_SHOW_SPACES] = {
- { "show-spaces" },
+ { "showspaces" },
VIS_OPTION_TYPE_BOOL|VIS_OPTION_NEED_WINDOW,
VIS_HELP("Display replacement symbol instead of a space")
},
[OPTION_SHOW_TABS] = {
- { "show-tabs" },
+ { "showtabs" },
VIS_OPTION_TYPE_BOOL|VIS_OPTION_NEED_WINDOW,
VIS_HELP("Display replacement symbol for tabs")
},
[OPTION_SHOW_NEWLINES] = {
- { "show-newlines" },
+ { "shownewlines" },
VIS_OPTION_TYPE_BOOL|VIS_OPTION_NEED_WINDOW,
VIS_HELP("Display replacement symbol for newlines")
},
[OPTION_SHOW_EOF] = {
- { "show-eof" },
+ { "showeof" },
VIS_OPTION_TYPE_BOOL|VIS_OPTION_NEED_WINDOW,
VIS_HELP("Display replacement symbol for lines after the end of the file")
},
@@ -382,7 +382,7 @@ static const OptionDef options[] = {
VIS_HELP("How to load existing files 'auto', 'read' or 'mmap'")
},
[OPTION_CHANGE_256COLORS] = {
- { "change-256colors" },
+ { "change256colors" },
VIS_OPTION_TYPE_BOOL,
VIS_HELP("Change 256 color palette to support 24bit colors")
},