aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/9term/9term.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/9term/9term.c')
-rw-r--r--src/cmd/9term/9term.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/cmd/9term/9term.c b/src/cmd/9term/9term.c
index 344a7b55..ed68ed19 100644
--- a/src/cmd/9term/9term.c
+++ b/src/cmd/9term/9term.c
@@ -468,9 +468,14 @@ label(Rune *sr, int n)
dir = smprint("%.*S", (el-1)-(sl+3), sl+3);
if(dir){
- drawsetlabel(dir);
- free(w->dir);
- w->dir = dir;
+ if(strcmp(dir, "*9term-hold+") == 0) {
+ w->holding = 1;
+ wrepaint(w);
+ } else {
+ drawsetlabel(dir);
+ free(w->dir);
+ w->dir = dir;
+ }
}
/* remove trailing /-sysname if present */