FileSelector: fix auto-complete to avoid modifying letter case of user-typed text (issue #247)

This commit is contained in:
David Capello 2014-03-29 17:26:07 -03:00
parent e777729928
commit a2a4eaae91

View File

@ -145,7 +145,7 @@ protected:
// Is the pattern (left_part) in the child_name's beginning?
if (it2 == left_part.end()) {
setText(child_name.c_str());
setText(left_part + child_name.substr(left_part.size()));
selectText(child_name.size(), left_part.size());
clear_keybuf();
return true;