# # # patch "commands.cc" # from [37c663818da4333a6748e5c7244d97b9625fd0be] # to [09c0a2860ca0dcf1219b0df0e181c157ec6038af] # ============================================================ --- commands.cc 37c663818da4333a6748e5c7244d97b9625fd0be +++ commands.cc 09c0a2860ca0dcf1219b0df0e181c157ec6038af @@ -333,7 +333,8 @@ namespace commands { else if (!child->hidden() && prefix().length() < (*iter2)().length()) { - utf8 p(string((*iter2)(), 0, prefix().length())); + string temp((*iter2)(), 0, prefix().length()); + utf8 p(temp); if (prefix == p) matches[caux] = child; }