File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ function! codefmt#GetClangFormatFormatter() abort
234
234
let l: supports_cursor = s: ClangFormatHasAtLeastVersion ([3 , 4 ])
235
235
if l: supports_cursor
236
236
" line2byte counts bytes from 1, and col counts from 1, so -2
237
- let l: cursor_pos = line2byte (line (" . " )) + col (" . " ) - 2
237
+ let l: cursor_pos = line2byte (line (' . ' )) + col (' . ' ) - 2
238
238
let l: cmd += [' -cursor' , string (l: cursor_pos )]
239
239
endif
240
240
@@ -250,7 +250,7 @@ function! codefmt#GetClangFormatFormatter() abort
250
250
let l: clang_format_output_json = maktaba#json#Parse (l: formatted [0 ])
251
251
let l: new_cursor_pos =
252
252
\ maktaba#ensure#IsNumber (l: clang_format_output_json .Cursor ) + 1
253
- exec " goto " . l: new_cursor_pos
253
+ execute ' goto' l: new_cursor_pos
254
254
catch
255
255
call maktaba#error#Warn (' Unable to parse clang-format cursor pos: %s' ,
256
256
\ v: exception )
You can’t perform that action at this time.
0 commit comments