File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -308,14 +308,14 @@ if exists("*searchpairpos")
308
308
let lnum = line (' .' )
309
309
let cnum = col (' .' )
310
310
let [opening_lnum, indent ] = s: clojure_indent_pos ()
311
- call cursor (lnum, cnum)
312
311
313
312
if opening_lnum > 0
314
313
let indent -= indent - virtcol ([opening_lnum, indent ])
315
314
endif
316
315
317
316
" Return if there are no previous lines to inherit from
318
317
if opening_lnum < 1 || opening_lnum >= lnum - 1
318
+ call cursor (lnum, cnum)
319
319
return indent
320
320
endif
321
321
@@ -350,11 +350,13 @@ if exists("*searchpairpos")
350
350
" Check if this is part of a multiline string
351
351
call cursor (lnum, 1 )
352
352
if s: syn_id_name () !~? ' \vstring|regex'
353
+ call cursor (lnum, cnum)
353
354
return indent (lnum)
354
355
endif
355
356
endif
356
357
endwhile
357
358
359
+ call cursor (lnum, cnum)
358
360
return indent
359
361
endfunction
360
362
You can’t perform that action at this time.
0 commit comments