Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 184f7aa

Browse files
sethyuanguns
authored andcommitted
Fix GetClojureIndent() undesireable cursor move.
1 parent f203a0d commit 184f7aa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎indent/clojure.vim‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,9 @@ if exists("*searchpairpos")
306306

307307
function! GetClojureIndent()
308308
let lnum = line('.')
309+
let cnum = col('.')
309310
let [opening_lnum, indent] = s:clojure_indent_pos()
311+
call cursor(lnum, cnum)
310312

311313
if opening_lnum > 0
312314
let indent -= indent - virtcol([opening_lnum, indent])

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /