mirror of
https://github.com/dhruvasagar/vim-table-mode.git
synced 2025-11-08 11:03:47 -05:00
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:
@@ -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-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)')
|
if !hasmapto('<Plug>(table-mode-tableize)')
|
||||||
exec "nmap " . g:table_mode_map_prefix . "t <Plug>(table-mode-tableize)"
|
exec "nmap " . g:table_mode_map_prefix . "t <Plug>(table-mode-tableize)"
|
||||||
|
|||||||
Reference in New Issue
Block a user