diff options
author | Krasimir Georgiev <krasimir@google.com> | 2017-08-22 14:28:01 +0000 |
---|---|---|
committer | Krasimir Georgiev <krasimir@google.com> | 2017-08-22 14:28:01 +0000 |
commit | 1b700ab92542a774697ab91eb85962715cede9a7 (patch) | |
tree | f11e92adc07251e8dcf7f4f88ba14764a7f5a327 /tools/clang-format | |
parent | ff2cadec02ece3a0588227018e74537c521c6097 (diff) |
[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
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@311456 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/clang-format')
-rw-r--r-- | tools/clang-format/clang-format.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/clang-format/clang-format.py b/tools/clang-format/clang-format.py index 2412566346..187125ed09 100644 --- a/tools/clang-format/clang-format.py +++ b/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(); |