aboutsummaryrefslogtreecommitdiff
path: root/util/fbrun/FbRun.cc
diff options
context:
space:
mode:
Diffstat (limited to 'util/fbrun/FbRun.cc')
-rw-r--r--util/fbrun/FbRun.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/fbrun/FbRun.cc b/util/fbrun/FbRun.cc
index b697187..19f6444 100644
--- a/util/fbrun/FbRun.cc
+++ b/util/fbrun/FbRun.cc
@@ -462,6 +462,10 @@ void FbRun::tabCompleteApps() {
462 if (prefix.at(0) == '/' || prefix.at(0) == '.' || prefix.at(0) == '~') { 462 if (prefix.at(0) == '/' || prefix.at(0) == '.' || prefix.at(0) == '~') {
463 // we're completing a directory, find subdirs 463 // we're completing a directory, find subdirs
464 split = prefix.find_last_of('/'); 464 split = prefix.find_last_of('/');
465 if (split == std::string::npos) {
466 split = prefix.size();
467 prefix.append("/");
468 }
465 prefix = prefix.substr(0, split+1); 469 prefix = prefix.substr(0, split+1);
466 if (prefix != m_last_completion_path) { 470 if (prefix != m_last_completion_path) {
467 m_files.clear(); 471 m_files.clear();