diff options
| author | Evan Gates <evan@gnarbox.com> | 2020-09-18 12:05:27 -0700 |
|---|---|---|
| committer | Evan Gates <evan@gnarbox.com> | 2020-09-19 09:49:48 -0700 |
| commit | e938326eee9781d340ae3704a742d5e3bad95cb6 (patch) | |
| tree | 014bc26df53c5a2be8812da679b25ec7618b6269 /sam.c | |
| parent | 2290224c844775d446fc8aaf3a98c0149d935875 (diff) | |
| download | vis-e938326eee9781d340ae3704a742d5e3bad95cb6.tar.gz vis-e938326eee9781d340ae3704a742d5e3bad95cb6.tar.xz | |
Add ignorecase option
Add a global ignorecase boolean option. When set add REG_ICASE to cflags
when calling text_regex_compile().
Diffstat (limited to 'sam.c')
| -rw-r--r-- | sam.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -300,6 +300,7 @@ enum { OPTION_LOAD_METHOD, OPTION_CHANGE_256COLORS, OPTION_LAYOUT, + OPTION_IGNORECASE, }; static const OptionDef options[] = { @@ -388,6 +389,11 @@ static const OptionDef options[] = { VIS_OPTION_TYPE_STRING, VIS_HELP("Vertical or horizontal window layout") }, + [OPTION_IGNORECASE] = { + { "ignorecase", "ic" }, + VIS_OPTION_TYPE_BOOL, + VIS_HELP("Ignore case when searching") + }, }; bool sam_init(Vis *vis) { |
