6376aa6206
The previous implementation used to replace the contents of the buffer with whatever the `formatcmd` was returning, regardless of the exit code of the command, which led to the buffer being wiped out on error. This commit does the formatting in a temporary file, and only replaces the current buffer with the contents of the -formatted- temporary file if the `formatcmd` returned successfully. Fixes #1357 |
||
---|---|---|
.. | ||
asciidoc.kak | ||
c-family.kak | ||
comment.kak | ||
diff.kak | ||
doc.kak | ||
formatter.kak | ||
grep.kak | ||
kakrc.kak | ||
make.kak | ||
makefile.kak | ||
man.kak | ||
python.kak | ||
sh.kak |