Fix :map scope completion

This commit is contained in:
Maxime Coste 2014-07-08 00:53:06 +01:00
parent 4e4680c9c6
commit 9952704eaf

View File

@ -932,7 +932,7 @@ const CommandDesc map_key_cmd = {
return Completions{ 0_byte, params[0].length(),
complete_scope(params[0].substr(0_byte, pos_in_token)) };
if (token_to_complete == 1)
return Completions{ 0_byte, params[0].length(),
return Completions{ 0_byte, params[1].length(),
complete_mode(params[1].substr(0_byte, pos_in_token)) };
return Completions{};
},