about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/command/commands.c5
-rw-r--r--src/ui/core.c2
2 files changed, 3 insertions, 4 deletions
diff --git a/src/command/commands.c b/src/command/commands.c
index 9b4d6635..35e424b9 100644
--- a/src/command/commands.c
+++ b/src/command/commands.c
@@ -689,7 +689,7 @@ cmd_wins(gchar **args, struct cmd_help_t help)
     if (args[0] == NULL) {
         cons_show_wins();
     } else if (strcmp(args[0], "tidy") == 0) {
-        if ( ui_tidy_wins() ) {
+        if (ui_tidy_wins()) {
             cons_show("Windows tidied.");
         } else {
             cons_show("No tidy needed.");
@@ -727,7 +727,7 @@ cmd_winstidy(gchar **args, struct cmd_help_t help)
 {
     gboolean result = _cmd_set_boolean_preference(args[0], help, "Wins Auto Tidy", PREF_WINS_AUTO_TIDY);
 
-    if( result ) {
+    if (result && g_strcmp0(args[0], "on") == 0) {
         ui_tidy_wins();
     }
 
@@ -3260,7 +3260,6 @@ cmd_close(gchar **args, struct cmd_help_t help)
 
     // Tidy up the window list.
     if (prefs_get_boolean(PREF_WINS_AUTO_TIDY)) {
-        // TODO: Any benefit of checking the return value?
         ui_tidy_wins();
     }
 
diff --git a/src/ui/core.c b/src/ui/core.c
index c028e818..8431371d 100644
--- a/src/ui/core.c
+++ b/src/ui/core.c
@@ -1108,7 +1108,7 @@ ui_close_win(int index)
 gboolean
 ui_tidy_wins(void)
 {
-     return wins_tidy();
+    return wins_tidy();
 }
 
 void