Fix buffer name completion when basename only

This commit is contained in:
Maxime Coste 2014-08-03 10:00:34 +01:00
parent 89956b5347
commit de402c4703

View File

@ -110,7 +110,7 @@ CandidateList BufferManager::complete_buffer_name(StringView prefix,
{ {
ByteCount pos = name.find_last_of('/'); ByteCount pos = name.find_last_of('/');
if (pos != (int)String::npos) if (pos != (int)String::npos)
match_name = name.substr(pos); match_name = name.substr(pos+1);
} }
if (prefix_match(match_name, real_prefix)) if (prefix_match(match_name, real_prefix))