summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Stellard <tstellar@redhat.com>2017-11-28 16:19:54 +0000
committerTom Stellard <tstellar@redhat.com>2017-11-28 16:19:54 +0000
commitbfac2c57b31e9f26fb4145852a040df307394ec7 (patch)
tree65a796befacd10041972ccc0a0f3b2f1f52c83fe
parent4a691c68e88d2075e0d72443ea1269661834b45b (diff)
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 ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_50@319179 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--tools/clang-format/clang-format.py2
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();