aboutsummaryrefslogtreecommitdiff
path: root/util/fbrun/FbRun.cc
diff options
context:
space:
mode:
authormathias <mathias>2005-05-09 07:20:17 (GMT)
committermathias <mathias>2005-05-09 07:20:17 (GMT)
commit318d76b47c76e5473c8f95dcb011e8e1f34d6e8e (patch)
tree50e7a342fbbd39380e76f04385cfa29c0959ab18 /util/fbrun/FbRun.cc
parentaba44f47aaae77780dcb658c6eb26a7724b20c1d (diff)
downloadfluxbox_pavel-318d76b47c76e5473c8f95dcb011e8e1f34d6e8e.zip
fluxbox_pavel-318d76b47c76e5473c8f95dcb011e8e1f34d6e8e.tar.bz2
fix from vadim for fbrun-tabcompletion
Diffstat (limited to 'util/fbrun/FbRun.cc')
-rw-r--r--util/fbrun/FbRun.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/fbrun/FbRun.cc b/util/fbrun/FbRun.cc
index d72d1bf..fcdf682 100644
--- a/util/fbrun/FbRun.cc
+++ b/util/fbrun/FbRun.cc
@@ -343,7 +343,7 @@ void FbRun::tabCompleteHistory() {
343 } else { 343 } else {
344 unsigned int nr= 0; 344 unsigned int nr= 0;
345 int history_item = m_current_history_item - 1; 345 int history_item = m_current_history_item - 1;
346 string prefix = text().substr(0, cursorPosition()); 346 string prefix = text().substr(0, textStartPos() + cursorPosition());
347 while (history_item != m_current_history_item && nr++ < m_history.size()) { 347 while (history_item != m_current_history_item && nr++ < m_history.size()) {
348 if (history_item <= -1 ) 348 if (history_item <= -1 )
349 history_item= m_history.size() - 1; 349 history_item= m_history.size() - 1;
@@ -362,7 +362,7 @@ void FbRun::tabCompleteApps() {
362 362
363 static bool first_run= true; 363 static bool first_run= true;
364 static string saved_prefix= ""; 364 static string saved_prefix= "";
365 string prefix= text().substr(0, cursorPosition()); 365 string prefix= text().substr(0, textStartPos() + cursorPosition());
366 FbTk::Directory dir; 366 FbTk::Directory dir;
367 367
368 bool add_dirs= false; 368 bool add_dirs= false;