From 50b3b01a33712be77ef953654fce95f141cc2982 Mon Sep 17 00:00:00 2001 From: Ryan Carney Date: Wed, 11 Nov 2015 21:29:18 -0800 Subject: [PATCH] fix mapping to table sort Symptom: when trying to sort a column using 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 --- plugin/table-mode.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/table-mode.vim b/plugin/table-mode.vim index aa504e9..3e78186 100644 --- a/plugin/table-mode.vim +++ b/plugin/table-mode.vim @@ -108,7 +108,7 @@ nnoremap (table-mode-eval-formula) :call tablemode#spreadsheet#fo nnoremap (table-mode-echo-cell) :call TableEchoCell() -nnoremap (table-mode-sort) :call tablemode#spreadsheet#Sort() +nnoremap (table-mode-sort) :call tablemode#spreadsheet#Sort('') if !hasmapto('(table-mode-tableize)') exec "nmap " . g:table_mode_map_prefix . "t (table-mode-tableize)"