Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Unified Diff: tools/clang-format/clang-format.el

Issue 184973004: Prep for merging 3.4: Undo changes from 3.3 branch (Closed) Base URL: http://git.chromium.org/native_client/pnacl-clang.git@master
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/SemaCXX/cxx11-inheriting-ctors.cpp ('k') | www/cxx_status.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/clang-format/clang-format.el
diff --git a/tools/clang-format/clang-format.el b/tools/clang-format/clang-format.el
index 2c5546b241cc3484a6573fef8f012dcc5d86643e..70504c9f3c0842ee5ef0ef16df4604edc2410e42 100644
--- a/tools/clang-format/clang-format.el
+++ b/tools/clang-format/clang-format.el
@@ -19,8 +19,8 @@
(if mark-active
(setq beg (region-beginning)
end (region-end))
- (setq beg (min (line-beginning-position) (1- (point-max)))
- end (min (line-end-position) (1- (point-max)))))
+ (setq beg (line-beginning-position)
+ end (line-end-position)))
(call-process-region (point-min) (point-max) binary t t nil
"-offset" (number-to-string (1- beg))
"-length" (number-to-string (- end beg))
« no previous file with comments | « test/SemaCXX/cxx11-inheriting-ctors.cpp ('k') | www/cxx_status.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698