Skip to content

Commit bfac2c5

Browse files
committed
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
1 parent 4a691c6 commit bfac2c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/clang-format/clang-format.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def main():
6262

6363
# Determine range to format.
6464
if vim.eval('exists("l:lines")') == '1':
65-
lines = vim.eval('l:lines')
65+
lines = ['-lines', vim.eval('l:lines')]
6666
elif vim.eval('exists("l:formatdiff")') == '1':
6767
with open(vim.current.buffer.name, 'r') as f:
6868
ondisk = f.read().splitlines();

0 commit comments

Comments
 (0)