@@ -78,7 +78,7 @@ def main():
78
78
79
79
# Determine range to format.
80
80
if vim .eval ('exists("l:lines")' ) == "1" :
81
- lines = ["-lines" , vim .eval ("l:lines" )]
81
+ lines = ["-- lines" , vim .eval ("l:lines" )]
82
82
elif vim .eval ('exists("l:formatdiff")' ) == "1" and os .path .exists (
83
83
vim .current .buffer .name
84
84
):
@@ -88,12 +88,12 @@ def main():
88
88
lines = []
89
89
for op in reversed (sequence .get_opcodes ()):
90
90
if op [0 ] not in ["equal" , "delete" ]:
91
- lines += ["-lines" , "%s:%s" % (op [3 ] + 1 , op [4 ])]
91
+ lines += ["-- lines" , "%s:%s" % (op [3 ] + 1 , op [4 ])]
92
92
if lines == []:
93
93
return
94
94
else :
95
95
lines = [
96
- "-lines" ,
96
+ "-- lines" ,
97
97
"%s:%s" % (vim .current .range .start + 1 , vim .current .range .end + 1 ),
98
98
]
99
99
@@ -116,15 +116,15 @@ def main():
116
116
startupinfo .wShowWindow = subprocess .SW_HIDE
117
117
118
118
# Call formatter.
119
- command = [binary , "-cursor" , str (cursor_byte )]
120
- if lines != ["-lines" , "all" ]:
119
+ command = [binary , "-- cursor" , str (cursor_byte )]
120
+ if lines != ["-- lines" , "all" ]:
121
121
command += lines
122
122
if style :
123
- command .extend (["-style" , style ])
123
+ command .extend (["-- style" , style ])
124
124
if fallback_style :
125
- command .extend (["-fallback-style" , fallback_style ])
125
+ command .extend (["-- fallback-style" , fallback_style ])
126
126
if vim .current .buffer .name :
127
- command .extend (["-assume-filename" , vim .current .buffer .name ])
127
+ command .extend (["-- assume-filename" , vim .current .buffer .name ])
128
128
p = subprocess .Popen (
129
129
command ,
130
130
stdout = subprocess .PIPE ,
0 commit comments