Add / after directory name when doing tab completion

This commit is contained in:
Andy Cedilnik 2002-11-19 13:19:40 -05:00
parent 1d39833446
commit ae3b1f3e70
1 changed files with 5 additions and 0 deletions

View File

@ -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);