From 0b20366c3c7926b3c69699b2e1b6ffd928f4cce3 Mon Sep 17 00:00:00 2001 From: lolson Date: Mon, 13 Jul 2015 10:55:30 -0500 Subject: [PATCH] adding features --- plugin/makecols.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/makecols.vim b/plugin/makecols.vim index 02da6a3..e1c6afb 100644 --- a/plugin/makecols.vim +++ b/plugin/makecols.vim @@ -75,8 +75,8 @@ function! s:convert_selection_vert() let new_string = "" let selection = s:get_visual_selection() let old_selection = split(selection, ",") - let lines = printf('%.1', len(old_selection)) - echom "Lines: " . float2nr(lines) + let lines = len(old_selection) * 1.0 + echom "Lines: " . lines echom "Cols: " . g:makecols_cols let rows = lines / g:makecols_cols echom "Rows: " . rows