diff options
author | Tom Stellard <tstellar@redhat.com> | 2017-11-28 16:19:54 +0000 |
---|---|---|
committer | Tom Stellard <tstellar@redhat.com> | 2017-11-28 16:19:54 +0000 |
commit | 6a66741f58c0375ff05d9fc328fafb6c0bd8ddab (patch) | |
tree | 867fe66d91f94a7c6dce3c6fc0d8c57ce0e97b23 | |
parent | 0c60ce13b2148b3b13c75e1d99625b2d94701df3 (diff) | |
download | llvm-6a66741f58c0375ff05d9fc328fafb6c0bd8ddab.zip llvm-6a66741f58c0375ff05d9fc328fafb6c0bd8ddab.tar.gz llvm-6a66741f58c0375ff05d9fc328fafb6c0bd8ddab.tar.bz2 |
Merging r311456:
------------------------------------------------------------------------
r311456 | krasimir | 2017-08-22 07:28:01 -0700 (Tue, 22 Aug 2017) | 13 lines
[clang-format] Fix lines regression in clang-format.py
Summary:
This patch fixes a regression after https://reviews.llvm.org/rL305665,
which updates the structure of the `lines` variable.
Reviewers: djasper
Reviewed By: djasper
Subscribers: cfe-commits
Differential Revision: https://reviews.llvm.org/D37011
------------------------------------------------------------------------
llvm-svn: 319179
-rw-r--r-- | clang/tools/clang-format/clang-format.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/tools/clang-format/clang-format.py b/clang/tools/clang-format/clang-format.py index 2412566..187125e 100644 --- a/clang/tools/clang-format/clang-format.py +++ b/clang/tools/clang-format/clang-format.py @@ -62,7 +62,7 @@ def main(): # Determine range to format. if vim.eval('exists("l:lines")') == '1': - lines = vim.eval('l:lines') + lines = ['-lines', vim.eval('l:lines')] elif vim.eval('exists("l:formatdiff")') == '1': with open(vim.current.buffer.name, 'r') as f: ondisk = f.read().splitlines(); |