sam: ^ does not need current file
This commit is contained in:
parent
290c921d1d
commit
446e454c5a
2 changed files with 2 additions and 2 deletions
|
@ -35,7 +35,7 @@ Cmdtab cmdtab[]={
|
|||
'>', 0, 0, 0, 0, aDot, 0, linex, plan9_cmd,
|
||||
'<', 0, 0, 0, 0, aDot, 0, linex, plan9_cmd,
|
||||
'|', 0, 0, 0, 0, aDot, 0, linex, plan9_cmd,
|
||||
'^', 0, 0, 0, 0, aDot, 0, linex, plan9_cmd,
|
||||
'^', 0, 0, 0, 0, aNo, 0, linex, plan9_cmd,
|
||||
'_', 0, 0, 0, 0, aDot, 0, linex, plan9_cmd,
|
||||
'=', 0, 0, 0, 0, aDot, 0, linex, eq_cmd,
|
||||
'c'|0x100,0, 0, 0, 0, aNo, 0, wordx, cd_cmd,
|
||||
|
|
|
@ -26,7 +26,7 @@ cmdexec(File *f, Cmd *cp)
|
|||
if(f && f->unread)
|
||||
load(f);
|
||||
if(f==0 && (cp->addr==0 || cp->addr->type!='"') &&
|
||||
!utfrune("bBnqUXY!", cp->cmdc) &&
|
||||
!utfrune("bBnqUXY!^", cp->cmdc) &&
|
||||
cp->cmdc!=('c'|0x100) && !(cp->cmdc=='D' && cp->ctext))
|
||||
error(Enofile);
|
||||
i = lookup(cp->cmdc);
|
||||
|
|
Loading…
Reference in a new issue