From a2915071717271526ace3e8b84487beece8f9f47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Vanicat?= Date: Fri, 12 Mar 2010 16:43:08 +0100 Subject: [PATCH] In magit-ignore-file, add a new line if there wasn't one in the ignore file --- magit.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/magit.el b/magit.el index 4e4e8073..ff6ff778 100644 --- a/magit.el +++ b/magit.el @@ -3132,6 +3132,8 @@ Prefix arg means justify as well." (with-temp-buffer (insert-file-contents ignore-file) (goto-char (point-max)) + (unless (bolp) + (insert "\n")) (insert "/" file "\n") (write-region nil nil ignore-file)) (magit-need-refresh)))