File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -791,7 +791,6 @@ endfunction
791791
792792function ! s: FormatIntoColumns (words) abort
793793 let max_word_width = 0
794-
795794 for word in a: words
796795 if strwidth (word) > max_word_width
797796 let max_word_width = strwidth (word)
@@ -804,24 +803,19 @@ function! s:FormatIntoColumns(words) abort
804803 endif
805804
806805 let num_rows = float2nr (ceil (len (a: words ) / num_columns))
807-
808806 let lines = []
809807
810808 for i in range (num_rows)
811809 let line = ' '
812-
813810 for j in range (num_columns)
814811 let word_index = j * num_rows + i
815-
816812 if word_index < len (a: words )
817813 let word = a: words [word_index]
818814 else
819815 let word = ' '
820816 endif
821-
822817 let line .= printf (' %-' . max_word_width . ' S ' , word)
823818 endfor
824-
825819 call add (lines , line )
826820 endfor
827821
You can’t perform that action at this time.
0 commit comments