mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Suppress args out of range error in C++ buffers
When you use iedit or multiple cursors.
This commit is contained in:
@ -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)
|
||||||
|
Reference in New Issue
Block a user