diff options
author | sabetts <sabetts> | 2001-09-09 18:53:22 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2001-09-09 18:53:22 +0000 |
commit | 52331f356b10796b8c8a3748f1bccd16d692571d (patch) | |
tree | 4c9e4f479cb637e1dc27a9c1c8554734e94db724 /src | |
parent | 22a8a1ba510dab1dfa3a3639825463d2678a3d34 (diff) | |
download | ratpoison-52331f356b10796b8c8a3748f1bccd16d692571d.zip |
(cmd_windows): if data is NULL use the default format string.
Diffstat (limited to 'src')
-rw-r--r-- | src/actions.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/actions.c b/src/actions.c index 857bc9e..2f748aa 100644 --- a/src/actions.c +++ b/src/actions.c @@ -1006,7 +1006,10 @@ cmd_windows (int interactive, void *data) else { window_list = sbuf_new (0); - get_window_list ((char *)data, "\n", window_list, &dummy, &dummy); + if (data) + get_window_list ((char *)data, "\n", window_list, &dummy, &dummy); + else + get_window_list (defaults.window_fmt, "\n", window_list, &dummy, &dummy); tmp = sbuf_get (window_list); free (window_list); |