parent
f9c8cdb5a6
commit
0e881c054a
2 changed files with 23 additions and 16 deletions
|
|
@ -468,10 +468,15 @@ label(Rune *sr, int n)
|
||||||
|
|
||||||
dir = smprint("%.*S", (el-1)-(sl+3), sl+3);
|
dir = smprint("%.*S", (el-1)-(sl+3), sl+3);
|
||||||
if(dir){
|
if(dir){
|
||||||
|
if(strcmp(dir, "*9term-hold+") == 0) {
|
||||||
|
w->holding = 1;
|
||||||
|
wrepaint(w);
|
||||||
|
} else {
|
||||||
drawsetlabel(dir);
|
drawsetlabel(dir);
|
||||||
free(w->dir);
|
free(w->dir);
|
||||||
w->dir = dir;
|
w->dir = dir;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* remove trailing /-sysname if present */
|
/* remove trailing /-sysname if present */
|
||||||
p = strrchr(dir, '/');
|
p = strrchr(dir, '/');
|
||||||
|
|
|
||||||
|
|
@ -598,6 +598,7 @@ label(char *sr, int n)
|
||||||
return n;
|
return n;
|
||||||
|
|
||||||
*r = 0;
|
*r = 0;
|
||||||
|
if(strcmp(sl+3, "*9term-hold+") != 0) {
|
||||||
/*
|
/*
|
||||||
* add /-sysname if not present
|
* add /-sysname if not present
|
||||||
*/
|
*/
|
||||||
|
|
@ -612,6 +613,7 @@ label(char *sr, int n)
|
||||||
}
|
}
|
||||||
strcat(wdir, "\n0\n");
|
strcat(wdir, "\n0\n");
|
||||||
fswrite(ctlfd, wdir, strlen(wdir));
|
fswrite(ctlfd, wdir, strlen(wdir));
|
||||||
|
}
|
||||||
|
|
||||||
memmove(sl, el, er-el);
|
memmove(sl, el, er-el);
|
||||||
n -= (el-sl);
|
n -= (el-sl);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue