Преглед изворни кода

Add / after directory name when doing tab completion

Andy Cedilnik пре 23 година
родитељ
комит
ae3b1f3e70
1 измењених фајлова са 5 додато и 0 уклоњено
  1. 5 0
      Source/CursesDialog/cmCursesPathWidget.cxx

+ 5 - 0
Source/CursesDialog/cmCursesPathWidget.cxx

@@ -75,6 +75,11 @@ void cmCursesPathWidget::OnTab(cmCursesMainForm* fm, WINDOW* w)
     cstr = cstr.substr(0, cstr.size()-1);
     }
 
+  if ( cmSystemTools::FileIsDirectory(cstr.c_str()) )
+    {
+    cstr += "/";
+    }
+
   this->SetString(cstr.c_str());
   touchwin(w); 
   wrefresh(w);