diff options
author | John Ankarstr\xf6m <john@ankarstrom.se> | 2021-06-05 01:50:21 +0200 |
---|---|---|
committer | John Ankarstr\xf6m <john@ankarstrom.se> | 2021-06-05 01:50:21 +0200 |
commit | 596a41139c08e172459d28fba0584f8ef6f576b5 (patch) | |
tree | 07696ce0652413a3b2d64df61db38c35f2ea80e8 /noice.c | |
parent | 40e500c009bd65b7305ea95a3e61db88d5886181 (diff) | |
download | noice-596a41139c08e172459d28fba0584f8ef6f576b5.tar.gz |
Set title on path change (safely)
Diffstat (limited to 'noice.c')
-rw-r--r-- | noice.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -19,6 +19,7 @@ #include <string.h> #include <unistd.h> +#include "safetitle.h" #include "util.h" #ifdef DEBUG @@ -698,6 +699,7 @@ nochange: /* Save history */ strlcpy(oldpath, path, sizeof(oldpath)); strlcpy(path, dir, sizeof(path)); + safetitle(path); /* Reset filter */ strlcpy(fltr, ifilter, sizeof(fltr)); goto begin; @@ -731,6 +733,7 @@ nochange: goto nochange; } strlcpy(path, newpath, sizeof(path)); + safetitle(path); /* Reset filter */ strlcpy(fltr, ifilter, sizeof(fltr)); goto begin; @@ -801,6 +804,7 @@ nochange: goto nochange; } strlcpy(path, newpath, sizeof(path)); + safetitle(path); /* Reset filter */ strlcpy(fltr, ifilter, sizeof(fltr)); DPRINTF_S(path); @@ -816,6 +820,7 @@ nochange: goto nochange; } strlcpy(path, tmp, sizeof(path)); + safetitle(path); /* Reset filter */ strlcpy(fltr, ifilter, sizeof(fltr)); DPRINTF_S(path); |