From bfac2c57b31e9f26fb4145852a040df307394ec7 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Tue, 28 Nov 2017 16:19:54 +0000 Subject: 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 --- tools/clang-format/clang-format.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- cgit v1.2.3