File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -268,9 +268,9 @@ detect_filetype () (
268268 if [ -z " $ft " ] && [ -x " $( command -v vim) " ]; then
269269 vim --clean -es \
270270 +' let c_syntax_for_h = 1' \
271+ +" e $1 " \
271272 +' exec "!echo ".&ft' \
272- +" quit!" \
273- " $1 "
273+ +" quit!"
274274 fi
275275
276276 echo " $ft "
@@ -288,6 +288,7 @@ git_changes_formatted () (
288288 temp=" $tempdir " /temp
289289
290290 rm_list__push " $temp "
291+ rm_list__push " $diff_fmt "
291292
292293 if git diff -s " $cur_fmt " " $old_fmt " ; then
293294 merge --our " $cur " " $old " " $cur_fmt " > " $temp "
@@ -297,7 +298,6 @@ git_changes_formatted () (
297298 fi
298299
299300 merge --their " $old " " $old_fmt " " $cur_fmt " > " $diff_fmt "
300- rm_list__push " $diff_fmt "
301301
302302 merge --our " $diff_fmt " " $old " " $cur " > " $temp "
303303 if ! git diff -s " $diff_fmt " " $temp " ; then
You can’t perform that action at this time.
0 commit comments