Fix C-x 1 from gdb prompt
[deliverable/binutils-gdb.git] / gdb / tui / tui-layout.c
index 491ce275acbed2756e8fbeac341f607d42cef85e..b87d21eb6de43ebb7d9b968d465e1ecb74877a18 100644 (file)
@@ -790,13 +790,14 @@ tui_layout_split::remove_windows (const char *name)
       const char *this_name = m_splits[i].layout->get_name ();
       if (this_name == nullptr)
        m_splits[i].layout->remove_windows (name);
+      else if (strcmp (this_name, name) == 0
+              || strcmp (this_name, "cmd") == 0
+              || strcmp (this_name, "status") == 0)
+       {
+         /* Keep.  */
+       }
       else
        {
-         if (strcmp (this_name, name) == 0
-             || strcmp (this_name, "cmd") == 0)
-           {
-             /* Keep.  */
-           }
          m_splits.erase (m_splits.begin () + i);
          --i;
        }
This page took 0.022863 seconds and 4 git commands to generate.