mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-24 11:41:58 +00:00
acme: fix movetodel for spaces in file names
This commit is contained in:
parent
7b1c85f6e8
commit
86bfd6075d
1 changed files with 8 additions and 11 deletions
|
@ -110,18 +110,15 @@ windrawbutton(Window *w)
|
||||||
int
|
int
|
||||||
delrunepos(Window *w)
|
delrunepos(Window *w)
|
||||||
{
|
{
|
||||||
int n;
|
Rune *r;
|
||||||
Rune rune;
|
int i;
|
||||||
|
|
||||||
for(n=0; n<w->tag.file->b.nc; n++) {
|
r = parsetag(w, &i);
|
||||||
bufread(&w->tag.file->b, n, &rune, 1);
|
free(r);
|
||||||
if(rune == ' ')
|
i += 2;
|
||||||
break;
|
if(i >= w->tag.file->b.nc)
|
||||||
}
|
|
||||||
n += 2;
|
|
||||||
if(n >= w->tag.file->b.nc)
|
|
||||||
return -1;
|
return -1;
|
||||||
return n;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -441,7 +438,7 @@ parsetag(Window *w, int *len)
|
||||||
{
|
{
|
||||||
static Rune Ldelsnarf[] = { ' ', 'D', 'e', 'l', ' ', 'S', 'n', 'a', 'r', 'f', 0 };
|
static Rune Ldelsnarf[] = { ' ', 'D', 'e', 'l', ' ', 'S', 'n', 'a', 'r', 'f', 0 };
|
||||||
static Rune Lspacepipe[] = { ' ', '|', 0 };
|
static Rune Lspacepipe[] = { ' ', '|', 0 };
|
||||||
static Rune Ltabpipe[] = { ' ', '|', 0 };
|
static Rune Ltabpipe[] = { '\t', '|', 0 };
|
||||||
int i;
|
int i;
|
||||||
Rune *r, *p, *pipe;
|
Rune *r, *p, *pipe;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue