Solve #128.
This commit is contained in:
parent
f68c2cc9b6
commit
a4b3c40e8c
@ -228,7 +228,8 @@ else:
|
|||||||
for eol in possible_eols:
|
for eol in possible_eols:
|
||||||
lines = [splitline for line in lines for splitline in line.split(eol)]
|
lines = [splitline for line in lines for splitline in line.split(eol)]
|
||||||
|
|
||||||
vim.current.buffer[:] = lines
|
if vim.current.buffer[:] != lines:
|
||||||
|
vim.current.buffer[:] = lines
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
@ -287,7 +288,8 @@ else:
|
|||||||
for eol in possible_eols:
|
for eol in possible_eols:
|
||||||
lines = [splitline for line in lines for splitline in line.split(eol)]
|
lines = [splitline for line in lines for splitline in line.split(eol)]
|
||||||
|
|
||||||
vim.current.buffer[:] = lines
|
if vim.current.buffer[:] != lines:
|
||||||
|
vim.current.buffer[:] = lines
|
||||||
vim.command('return 0')
|
vim.command('return 0')
|
||||||
EOF
|
EOF
|
||||||
endfunction
|
endfunction
|
||||||
|
Loading…
Reference in New Issue
Block a user