Update everything, closes #435

This commit is contained in:
Adam Stankiewicz
2019-09-27 19:47:32 +02:00
parent 4f3df59be7
commit f95026252c
26 changed files with 991 additions and 243 deletions

View File

@@ -3,7 +3,7 @@ if !exists('g:polyglot_disabled') || !(index(g:polyglot_disabled, 'typescript')
function! jsx_pretty#comment#update_commentstring(original)
let syn_current = s:syn_name(line('.'), col('.'))
let syn_start = s:syn_name(line('.'), 1)
let save_view = winsaveview()
let save_cursor = getcurpos()
if syn_start =~? '^jsx'
let line = getline(".")
@@ -24,7 +24,7 @@ function! jsx_pretty#comment#update_commentstring(original)
endif
" Restore the cursor position
call winrestview(save_view)
call setpos('.', save_cursor)
endfunction
function! s:syn_name(lnum, cnum)