X-Git-Url: https://code.delx.au/gnu-emacs-elpa/blobdiff_plain/da32a6a4e9fd28006e4a53e99250e80587cb50bf..9bf653e045719b0823de5c809bcf0b8751f8c3a8:/company-clang.el 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)))