Commit dc606f02 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(calculate-c++-indent): Respect

c-continued-brace-offset (as in c-mode.el).
parent 7d3221d7
...@@ -515,7 +515,11 @@ Returns nil if line starts inside a string, t if in a comment." ...@@ -515,7 +515,11 @@ Returns nil if line starts inside a string, t if in a comment."
;; previous line of the statement. ;; previous line of the statement.
(progn (progn
(c-backward-to-start-of-continued-exp containing-sexp) (c-backward-to-start-of-continued-exp containing-sexp)
(+ c-continued-statement-offset (current-column))) (+ c-continued-statement-offset (current-column)
(if (save-excursion (goto-char indent-point)
(skip-chars-forward " \t")
(eq (following-char) ?{))
c-continued-brace-offset 0)))
;; This line starts a new statement. ;; This line starts a new statement.
;; Position following last unclosed open. ;; Position following last unclosed open.
(goto-char containing-sexp) (goto-char containing-sexp)
......
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