fix mapping to table sort

Symptom:
when trying to sort a column using <leader>ts the following error would
be displayed:

     E119: Not enough arguments for function: tablemode#spreadsheet#Sort

Problem:
Function call tablemode#spreadsheet#Sort() was missing a arguemnts for
it's named parameter bang.

Solution:
Add a blank value of '' as the argument for the bang parameter

----
Related Issues: #38
This commit is contained in:
Ryan Carney
2015-11-11 21:29:18 -08:00
parent 5395c9f52b
commit 50b3b01a33

View File

@@ -108,7 +108,7 @@ nnoremap <silent> <Plug>(table-mode-eval-formula) :call tablemode#spreadsheet#fo
nnoremap <silent> <Plug>(table-mode-echo-cell) :call <SID>TableEchoCell()<CR>
nnoremap <silent> <Plug>(table-mode-sort) :call tablemode#spreadsheet#Sort()<CR>
nnoremap <silent> <Plug>(table-mode-sort) :call tablemode#spreadsheet#Sort('')<CR>
if !hasmapto('<Plug>(table-mode-tableize)')
exec "nmap " . g:table_mode_map_prefix . "t <Plug>(table-mode-tableize)"