diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-11-19 18:19:40 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-11-19 18:19:40 (GMT) |
commit | ae3b1f3e7082e3310cb67def878e3c29367887a1 (patch) | |
tree | 1829b0af9388126a4164968d1df352dc81cef6af /Source/CursesDialog | |
parent | 1d39833446340e262020c83d9ef3124da6a1e3f7 (diff) | |
download | CMake-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.cxx | 5 |
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); |