From: Dmitry Gutov Date: Thu, 21 Mar 2013 15:57:26 +0000 (+0400) Subject: company-clang-objc-templatify: No extra space before args X-Git-Url: https://code.delx.au/gnu-emacs-elpa/commitdiff_plain/9bf653e045719b0823de5c809bcf0b8751f8c3a8 company-clang-objc-templatify: No extra space before args --- diff --git a/NEWS.md b/NEWS.md index a14f6058f..de36cbde3 100644 --- a/NEWS.md +++ b/NEWS.md @@ -2,6 +2,7 @@ ## Next +* `company-clang-objc-templatify` does not insert spaces after colons anymore. * `company-clang` is now only initialized in supported buffers. So, no error messages if you don't have Clang until you open a C file. * `company-clang` recognizes Clang included with recent Xcode. diff --git a/company-clang.el b/company-clang.el index 6b80ef02f..7fc66a93b 100644 --- a/company-clang.el +++ b/company-clang.el @@ -202,8 +202,8 @@ Prefix files (-include ...) can be selected with (save-excursion (goto-char beg) (while (search-forward ":" end t) - (replace-match ": ") - (incf end 2) + (replace-match ": ") + (incf end) (company-template-add-field templ (1- (match-end 0)) "")) (delete-char -1)) (company-template-move-to-first templ)))