aboutsummaryrefslogtreecommitdiff
path: root/vis-cmds.c
diff options
context:
space:
mode:
authorEvan Gates <evan@gnarbox.com>2020-09-18 12:05:27 -0700
committerEvan Gates <evan@gnarbox.com>2020-09-19 09:49:48 -0700
commite938326eee9781d340ae3704a742d5e3bad95cb6 (patch)
tree014bc26df53c5a2be8812da679b25ec7618b6269 /vis-cmds.c
parent2290224c844775d446fc8aaf3a98c0149d935875 (diff)
downloadvis-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 'vis-cmds.c')
-rw-r--r--vis-cmds.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/vis-cmds.c b/vis-cmds.c
index f2551d0..181321e 100644
--- a/vis-cmds.c
+++ b/vis-cmds.c
@@ -361,6 +361,9 @@ static bool cmd_set(Vis *vis, Win *win, Command *cmd, const char *argv[], Select
windows_arrange(vis, layout);
break;
}
+ case OPTION_IGNORECASE:
+ vis->ignorecase = toggle ? !vis->ignorecase : arg.b;
+ break;
default:
if (!opt->func)
return false;