From 305a9964bb29c21ae2a388215429dd99ec6f60de Mon Sep 17 00:00:00 2001 From: yyam Date: Sat, 10 Feb 2018 01:13:53 +0000 Subject: [PATCH] Fix error message always showing Re-balance the parentheses of the main if statement to ensure that the error message is the "else" expression. --- clang-format.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang-format.el b/clang-format.el index 927c816..e355ed0 100644 --- a/clang-format.el +++ b/clang-format.el @@ -54,7 +54,7 @@ (goto-char (1+ (cdr (assoc 'Cursor json-output)))) (dotimes (index (length orig-windows)) (set-window-start (nth index orig-windows) - (nth index orig-window-starts))))))) - (error "%s" (concat clang-format-binary " not found."))) + (nth index orig-window-starts)))))) + (error "%s" (concat clang-format-binary " not found.")))) (provide 'clang-format)