We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6871eb1 commit 89c30c0Copy full SHA for 89c30c0
1 file changed
autoload/jsx_pretty/comment.vim
@@ -1,7 +1,7 @@
1
function! jsx_pretty#comment#update_commentstring(original)
2
let syn_current = s:syn_name(line('.'), col('.'))
3
let syn_start = s:syn_name(line('.'), 1)
4
- let save_view = winsaveview()
+ let save_cursor = getcurpos()
5
6
if syn_start =~? '^jsx'
7
let line = getline(".")
@@ -22,7 +22,7 @@ function! jsx_pretty#comment#update_commentstring(original)
22
endif
23
24
" Restore the cursor position
25
- call winrestview(save_view)
+ call setpos('.', save_cursor)
26
endfunction
27
28
function! s:syn_name(lnum, cnum)
0 commit comments