mothra: fix alt display crash, repair mistake
This commit is contained in:
parent
1b734021eb
commit
2d5aecc845
1 changed files with 14 additions and 11 deletions
|
@ -627,6 +627,14 @@ void docmd(Panel *p, char *s){
|
|||
case 'g':
|
||||
s = arg(s);
|
||||
if(*s=='\0'){
|
||||
case 'r':
|
||||
if(selection)
|
||||
s = urlstr(selection);
|
||||
else
|
||||
message("no url selected");
|
||||
}
|
||||
geturl(s, GET, 0, 0, 0);
|
||||
break;
|
||||
case 'j':
|
||||
s = arg(s);
|
||||
if(*s)
|
||||
|
@ -637,14 +645,6 @@ void docmd(Panel *p, char *s){
|
|||
case 'm':
|
||||
mothon(current, !mothmode);
|
||||
break;
|
||||
case 'r':
|
||||
if(selection)
|
||||
s = urlstr(selection);
|
||||
else
|
||||
message("no url selected");
|
||||
}
|
||||
geturl(s, GET, 0, 0, 0);
|
||||
break;
|
||||
case 'w':
|
||||
case 'W':
|
||||
s = arg(s);
|
||||
|
@ -1130,14 +1130,17 @@ void hit3(int button, int item){
|
|||
swap=root;
|
||||
root=alt;
|
||||
alt=swap;
|
||||
current->yoffs=plgetpostextview(text);
|
||||
if(current)
|
||||
current->yoffs=plgetpostextview(text);
|
||||
swap=text;
|
||||
text=alttext;
|
||||
alttext=swap;
|
||||
defdisplay=!defdisplay;
|
||||
plpack(root, screen->r);
|
||||
plinittextview(text, PACKE|EXPAND, Pt(0, 0), current->text, dolink);
|
||||
plsetpostextview(text, current->yoffs);
|
||||
if(current){
|
||||
plinittextview(text, PACKE|EXPAND, Pt(0, 0), current->text, dolink);
|
||||
plsetpostextview(text, current->yoffs);
|
||||
}
|
||||
pldraw(root, screen);
|
||||
break;
|
||||
case 1:
|
||||
|
|
Loading…
Reference in a new issue