From 6454514bd792f202dbfde9b94a285d370af8c34b Mon Sep 17 00:00:00 2001 From: lolson Date: Mon, 13 Jul 2015 10:58:05 -0500 Subject: [PATCH] adding features --- plugin/makecols.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/makecols.vim b/plugin/makecols.vim index 120683d..00eb695 100644 --- a/plugin/makecols.vim +++ b/plugin/makecols.vim @@ -76,10 +76,10 @@ function! s:convert_selection_vert() let selection = s:get_visual_selection() let old_selection = split(selection, ",") let lines = len(old_selection) * 1.0 - echom "Lines: " . float2nr(lines) + echom "Lines: " . string(lines) echom "Cols: " . g:makecols_cols - let rows = lines / g:makecols_cols - echom "Rows: " . float2nr(rows) + let rows = (lines / g:makecols_cols) * 1.0 + echom "Rows: " . string(rows) " let calc_rows = float2nr(ceil(rows)) " echom "Rounded: " . calc_rows let @z = ""