From de402c4703facfbc07c8a23f42067c65f402edbc Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 3 Aug 2014 10:00:34 +0100 Subject: [PATCH] Fix buffer name completion when basename only --- src/buffer_manager.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/buffer_manager.cc b/src/buffer_manager.cc index 02720a3e..bb03ef6d 100644 --- a/src/buffer_manager.cc +++ b/src/buffer_manager.cc @@ -110,7 +110,7 @@ CandidateList BufferManager::complete_buffer_name(StringView prefix, { ByteCount pos = name.find_last_of('/'); if (pos != (int)String::npos) - match_name = name.substr(pos); + match_name = name.substr(pos+1); } if (prefix_match(match_name, real_prefix))