File src/hstr.c changed (mode: 100644) (index 0e779b0..9573e8f) |
... |
... |
unsigned hstr_make_selection(char *prefix, HistoryItems *history, int maxSelecti |
641 |
641 |
regmatch_t regexpMatch; |
regmatch_t regexpMatch; |
642 |
642 |
char regexpErrorMessage[CMDLINE_LNG]; |
char regexpErrorMessage[CMDLINE_LNG]; |
643 |
643 |
bool regexpCompilationError=false; |
bool regexpCompilationError=false; |
644 |
|
bool keywordsAllMatch; |
|
|
644 |
|
bool keywordsAllMatch=NULL; |
645 |
645 |
char *keywordsSavePtr=NULL; |
char *keywordsSavePtr=NULL; |
646 |
|
char *keywordsToken; |
|
647 |
|
char *keywordsParsedLine; |
|
648 |
|
char *keywordsPointerToDelete; |
|
|
646 |
|
char *keywordsToken=NULL; |
|
647 |
|
char *keywordsParsedLine=NULL; |
|
648 |
|
char *keywordsPointerToDelete=NULL; |
649 |
649 |
for(i=0; i<count && selectionCount<maxSelectionCount; i++) { |
for(i=0; i<count && selectionCount<maxSelectionCount; i++) { |
650 |
650 |
if(source[i]) { |
if(source[i]) { |
651 |
651 |
if(!prefix || !strlen(prefix)) { |
if(!prefix || !strlen(prefix)) { |
|
... |
... |
void print_selection_row(char *text, int y, int width, char *pattern) |
759 |
759 |
if(hstr->theme & HH_THEME_COLOR) { |
if(hstr->theme & HH_THEME_COLOR) { |
760 |
760 |
color_attr_on(COLOR_PAIR(HH_COLOR_MATCH)); |
color_attr_on(COLOR_PAIR(HH_COLOR_MATCH)); |
761 |
761 |
} |
} |
762 |
|
char* p; |
|
763 |
|
char* pp; |
|
764 |
|
char* keywordsSavePtr; |
|
765 |
|
char* keywordsToken; |
|
766 |
|
char* keywordsParsedLine; |
|
767 |
|
char* keywordsPointerToDelete; |
|
|
762 |
|
char* p=NULL; |
|
763 |
|
char* pp=NULL; |
|
764 |
|
char* keywordsSavePtr=NULL; |
|
765 |
|
char* keywordsToken=NULL; |
|
766 |
|
char* keywordsParsedLine=NULL; |
|
767 |
|
char* keywordsPointerToDelete=NULL; |
768 |
768 |
|
|
769 |
769 |
switch(hstr->historyMatch) { |
switch(hstr->historyMatch) { |
770 |
770 |
case HH_MATCH_SUBSTRING: |
case HH_MATCH_SUBSTRING: |