Commit f5daf9b149ca23cc6658b6ecef180dbdc8db5f2f

Stefan Sperling 2019-06-24T22:33:54

tog: make search pattern case-sensitive

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tog/tog.c b/tog/tog.c
index 1795147..d04d45e 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -551,7 +551,7 @@ view_search_start(struct tog_view *view)
 	}
 
 	if (regcomp(&view->regex, pattern,
-	    REG_EXTENDED | REG_ICASE | REG_NOSUB | REG_NEWLINE) == 0) {
+	    REG_EXTENDED | REG_NOSUB | REG_NEWLINE) == 0) {
 		err = view->search_start(view);
 		if (err) {
 			regfree(&view->regex);