Suppress args out of range error in C++ buffers
When you use iedit or multiple cursors.
This commit is contained in:
parent
2e8b6aba98
commit
428cb15c7a
1 changed files with 7 additions and 0 deletions
|
@ -67,6 +67,13 @@ This is ignored by ccls.")
|
||||||
:return "return"
|
:return "return"
|
||||||
:yield "#require")
|
:yield "#require")
|
||||||
|
|
||||||
|
;; HACK Suppress 'Args out of range' error in when multiple modifications are
|
||||||
|
;; performed at once in a `c++-mode' buffer, e.g. with `iedit' or
|
||||||
|
;; multiple cursors.
|
||||||
|
(undefadvice! +cc--suppress-silly-errors-a (orig-fn &rest args)
|
||||||
|
:around #'c-after-change-mark-abnormal-strings
|
||||||
|
(ignore-errors (apply orig-fn args)))
|
||||||
|
|
||||||
;; Custom style, based off of linux
|
;; Custom style, based off of linux
|
||||||
(setq c-basic-offset tab-width
|
(setq c-basic-offset tab-width
|
||||||
c-backspace-function #'delete-backward-char)
|
c-backspace-function #'delete-backward-char)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue