Commit ec16dd1a authored by Alan Mackenzie's avatar Alan Mackenzie

CC Mode. Fix slow scrolling by adding a search limit.

This fixes bug #10149.

* lisp/progmodes/cc-fonts.el (c-font-lock-single-decl) Limit the search by
c-go-up-list-backwards to 500 non-literal characters.
parent 6911ef3d
Pipeline #3907 failed with stage
in 57 minutes and 47 seconds
......@@ -1244,7 +1244,7 @@ casts and declarations are fontified. Used on level 2 and higher."
(if (save-excursion
(and
(car (cddr decl-or-cast)) ; maybe-expression flag.
(c-go-up-list-backward)
(c-go-up-list-backward nil (c-determine-limit 500))
(eq (char-after) ?\()
(progn (c-backward-syntactic-ws)
(c-simple-skip-symbol-backward))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment