kakoune/rc/core
Frank LENORMAND 6376aa6206 rc formatter: Make sure the formatter returned successfully
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
2017-06-23 15:12:23 +03:00
..
asciidoc.kak More tolerant recognition of underlined titles in asciidoc highlight 2017-01-25 00:24:41 +00:00
c-family.kak Fix corner case in C family indenting 2017-06-13 10:19:38 +01:00
comment.kak Merge remote-tracking branch 'lenormf/doc-public-options' 2017-05-21 07:09:37 +01:00
diff.kak update command names 2017-01-04 13:04:27 +01:00
doc.kak rc: Fix calls to mktemp 2017-06-16 11:51:46 +03:00
formatter.kak rc formatter: Make sure the formatter returned successfully 2017-06-23 15:12:23 +03:00
grep.kak Update command names 2017-06-16 13:53:03 +02:00
kakrc.kak Merge remote-tracking branch 'danr/Remove-ad-hoc-rules-in-kakrc-highlighter' 2017-06-03 15:16:49 +01:00
make.kak Update command names 2017-06-16 13:53:03 +02:00
makefile.kak Adds faces module and function. Renames identifier face to variable. 2017-02-09 21:43:29 -05:00
man.kak rc: Fix calls to mktemp 2017-06-16 11:51:46 +03:00
python.kak Various auto indent fixes regarding wrong use of x instead of <a-x> 2017-01-13 00:50:03 +00:00
sh.kak Make shell variable expansion in "strings" highlighted the same way as in code 2017-05-25 19:54:08 +01:00