Skip to content

Commit b0fb116

Browse files
committed
Remove empty lines
1 parent ccafc3a commit b0fb116

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

autoload/leetcode.vim

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,6 @@ endfunction
791791

792792
function! 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

0 commit comments

Comments
 (0)