all repos — fluxbox @ 318d76b47c76e5473c8f95dcb011e8e1f34d6e8e

custom fork of the fluxbox windowmanager

fix from vadim for fbrun-tabcompletion
mathias mathias
commit

318d76b47c76e5473c8f95dcb011e8e1f34d6e8e

parent

aba44f47aaae77780dcb658c6eb26a7724b20c1d

3 files changed, 5 insertions(+), 2 deletions(-)

jump to
M ChangeLogChangeLog

@@ -1,6 +1,8 @@

(Format: Year/Month/Day) Changes for 0.9.13 *05/05/09: + * Fix for fbrun and completion (thanx Vadim) + TextBox.hh fbrun.cc * Fix for gentoo-bug #91955 (thanx Julien Trolet) Remembering the position of a window didnt store the reference corner
M src/FbTk/TextBox.hhsrc/FbTk/TextBox.hh

@@ -68,6 +68,7 @@ const std::string &text() const { return m_text; }

const Font &font() const { return *m_font; } GC gc() const { return m_gc; } int cursorPosition() const { return m_cursor_pos; } + inline int textStartPos(){ return m_start_pos; } int findEmptySpaceLeft(); int findEmptySpaceRight();
M util/fbrun/FbRun.ccutil/fbrun/FbRun.cc

@@ -343,7 +343,7 @@ XBell(m_display, 0);

} else { unsigned int nr= 0; int history_item = m_current_history_item - 1; - string prefix = text().substr(0, cursorPosition()); + string prefix = text().substr(0, textStartPos() + cursorPosition()); while (history_item != m_current_history_item && nr++ < m_history.size()) { if (history_item <= -1 ) history_item= m_history.size() - 1;

@@ -362,7 +362,7 @@ void FbRun::tabCompleteApps() {

static bool first_run= true; static string saved_prefix= ""; - string prefix= text().substr(0, cursorPosition()); + string prefix= text().substr(0, textStartPos() + cursorPosition()); FbTk::Directory dir; bool add_dirs= false;