diff options
Diffstat (limited to 'regex.c')
-rw-r--r-- | regex.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -101,6 +101,19 @@ void regexSelection(menuC* menu, const char* msg) { } } } +void regexXtracts(menuC* menu, const char* msg) { + int hasSelect = 0; + for(int i = 0 ; i < menu->nbElem ; i++ ) { + if( menu->list[i].selected == 1 ) { + regexXtract(&(menu->list[i]), msg); + hasSelect = 1; + } + } + if( !hasSelect ) { + regexXtract(&menu->list[menu->hl], msg); + } + +} /* * Example regex : * |