Skip to content

Commit 2608450

Browse files
committed
The internal commands file is already formatted as the plugin needs
1 parent b6c0874 commit 2608450

File tree

2 files changed

+520
-521
lines changed

2 files changed

+520
-521
lines changed

autoload/ctrlp/cmdpalette.vim

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ import vim
3434
path_to_script = vim.eval('expand("<sfile>")')
3535
path_to_commands = path_to_script.replace('cmdpalette.vim', 'internal_commands.txt')
3636
with open(path_to_commands) as commands_file:
37-
internal_commands = ['%s\\t%s' % (line.split()[0], ' '.join(line.split()[1:]).replace('"', '\\"'))
38-
for line in commands_file.readlines()]
37+
internal_commands = [l.strip() for l in commands_file.readlines()]
3938
endofpython
4039

4140
" Append s:cmdpalette_var to g:ctrlp_ext_vars

0 commit comments

Comments
 (0)