Skip to content

Commit 3f01816

Browse files
netcookiesAndre Gil
authored andcommitted
Merging netcookies:master code from PR csscomb#14, to handle smaller outputs
1 parent 3fa9363 commit 3f01816

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

plugin/csscomb.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ function! g:CSScomb(count, line1, line2)
1616
echoerr split(systemOutput, "\n")[1]
1717
else
1818
let lines = readfile(tempFile)
19+
if len(lines)<a:line2
20+
let dline = len(lines)+1
21+
exec dline.','.a:line2.'d_'
22+
endif
1923
call setline(a:line1, lines)
2024
endif
2125
endfunction

0 commit comments

Comments
 (0)