aboutsummaryrefslogtreecommitdiff
path: root/sam.c
diff options
context:
space:
mode:
Diffstat (limited to 'sam.c')
-rw-r--r--sam.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/sam.c b/sam.c
index 5a8a0b1..60d204e 100644
--- a/sam.c
+++ b/sam.c
@@ -301,6 +301,8 @@ enum {
OPTION_CHANGE_256COLORS,
OPTION_LAYOUT,
OPTION_IGNORECASE,
+ OPTION_BREAKAT,
+ OPTION_WRAP_COLUMN,
};
static const OptionDef options[] = {
@@ -394,6 +396,16 @@ static const OptionDef options[] = {
VIS_OPTION_TYPE_BOOL,
VIS_HELP("Ignore case when searching")
},
+ [OPTION_BREAKAT] = {
+ { "breakat", "brk" },
+ VIS_OPTION_TYPE_STRING|VIS_OPTION_NEED_WINDOW,
+ VIS_HELP("Characters which might cause a word wrap")
+ },
+ [OPTION_WRAP_COLUMN] = {
+ { "wrapcolumn", "wc" },
+ VIS_OPTION_TYPE_NUMBER|VIS_OPTION_NEED_WINDOW,
+ VIS_HELP("Wrap lines at minimum of window width and wrapcolumn")
+ },
};
bool sam_init(Vis *vis) {