merge
This commit is contained in:
commit
8c4a02a29b
1 changed files with 9 additions and 4 deletions
|
@ -699,7 +699,10 @@ void docmd(Panel *p, char *s){
|
||||||
pldraw(root, screen);
|
pldraw(root, screen);
|
||||||
}
|
}
|
||||||
|
|
||||||
void regerror(char*){} /* don't panic */
|
void regerror(char *msg)
|
||||||
|
{
|
||||||
|
werrstr("regerror: %s", msg);
|
||||||
|
}
|
||||||
|
|
||||||
void search(void){
|
void search(void){
|
||||||
static char last[256];
|
static char last[256];
|
||||||
|
@ -713,10 +716,12 @@ void search(void){
|
||||||
strncpy(buf, last, sizeof(buf)-1);
|
strncpy(buf, last, sizeof(buf)-1);
|
||||||
if(eenter("Search for", buf, sizeof(buf), &mouse) <= 0)
|
if(eenter("Search for", buf, sizeof(buf), &mouse) <= 0)
|
||||||
return;
|
return;
|
||||||
re = regcompnl(buf);
|
|
||||||
if(re == nil)
|
|
||||||
return;
|
|
||||||
strncpy(last, buf, sizeof(buf)-1);
|
strncpy(last, buf, sizeof(buf)-1);
|
||||||
|
re = regcompnl(buf);
|
||||||
|
if(re == nil){
|
||||||
|
message("%r");
|
||||||
|
continue;
|
||||||
|
}
|
||||||
for(tp=current->text;tp;tp=tp->next)
|
for(tp=current->text;tp;tp=tp->next)
|
||||||
if(tp->flags & PL_SEL)
|
if(tp->flags & PL_SEL)
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue