summaryrefslogtreecommitdiff
path: root/sys/src/cmd/mothra
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2014-02-05 08:58:53 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2014-02-05 08:58:53 +0100
commit8c4a02a29b618a6779447316ec0a47ec1c8f3d33 (patch)
tree397db85ec1339d7744098b2fed4c65a9950a414f /sys/src/cmd/mothra
parentffcac11a5a1215a831d7a1421ce808a13d56bfc2 (diff)
parent9f99edda55cf95697b109727f89eed6168160119 (diff)
merge
Diffstat (limited to 'sys/src/cmd/mothra')
-rw-r--r--sys/src/cmd/mothra/mothra.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/sys/src/cmd/mothra/mothra.c b/sys/src/cmd/mothra/mothra.c
index 485ded812..c15bb4a80 100644
--- a/sys/src/cmd/mothra/mothra.c
+++ b/sys/src/cmd/mothra/mothra.c
@@ -699,7 +699,10 @@ void docmd(Panel *p, char *s){
pldraw(root, screen);
}
-void regerror(char*){} /* don't panic */
+void regerror(char *msg)
+{
+ werrstr("regerror: %s", msg);
+}
void search(void){
static char last[256];
@@ -713,10 +716,12 @@ void search(void){
strncpy(buf, last, sizeof(buf)-1);
if(eenter("Search for", buf, sizeof(buf), &mouse) <= 0)
return;
- re = regcompnl(buf);
- if(re == nil)
- return;
strncpy(last, buf, sizeof(buf)-1);
+ re = regcompnl(buf);
+ if(re == nil){
+ message("%r");
+ continue;
+ }
for(tp=current->text;tp;tp=tp->next)
if(tp->flags & PL_SEL)
break;