summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-11-19 18:19:40 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-11-19 18:19:40 (GMT)
commitae3b1f3e7082e3310cb67def878e3c29367887a1 (patch)
tree1829b0af9388126a4164968d1df352dc81cef6af /Source/CursesDialog
parent1d39833446340e262020c83d9ef3124da6a1e3f7 (diff)
downloadCMake-ae3b1f3e7082e3310cb67def878e3c29367887a1.zip
CMake-ae3b1f3e7082e3310cb67def878e3c29367887a1.tar.gz
CMake-ae3b1f3e7082e3310cb67def878e3c29367887a1.tar.bz2
Add / after directory name when doing tab completion
Diffstat (limited to 'Source/CursesDialog')
-rw-r--r--Source/CursesDialog/cmCursesPathWidget.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/CursesDialog/cmCursesPathWidget.cxx b/Source/CursesDialog/cmCursesPathWidget.cxx
index 36ef5b9..5042838 100644
--- a/Source/CursesDialog/cmCursesPathWidget.cxx
+++ b/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);