all repos — fluxbox @ 33d90f7a5e27a67bfe87a89b828528e0eb033123

custom fork of the fluxbox windowmanager

fix segfaulting when new text is smaller than the oldtext,
m_start_pos has to be 0 before calculating anything else.
mathias mathias
commit

33d90f7a5e27a67bfe87a89b828528e0eb033123

parent

c7baeb1ae2c9eba2457a279f1be29517f6ac49d5

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M src/FbTk/TextBox.ccsrc/FbTk/TextBox.cc

@@ -69,6 +69,7 @@ }

void TextBox::setText(const std::string &text) { m_text = text; + m_start_pos = 0; cursorEnd(); adjustStartPos(); }