diff options
| author | Adam Stankiewicz <sheerun@sher.pl> | 2019-09-12 14:32:53 +0200 | 
|---|---|---|
| committer | Adam Stankiewicz <sheerun@sher.pl> | 2019-09-12 14:32:53 +0200 | 
| commit | 26790941f6d4ceedbf6324eb3712949eb614908f (patch) | |
| tree | e6e3ba2a0a04fa07b3b462bda2c23a20ced13313 /autoload/jsx_pretty | |
| parent | fbc2af9e820d85e17cd08023f4dcc66545735d58 (diff) | |
| download | vim-polyglot-26790941f6d4ceedbf6324eb3712949eb614908f.tar.gz vim-polyglot-26790941f6d4ceedbf6324eb3712949eb614908f.zip | |
Update
Diffstat (limited to 'autoload/jsx_pretty')
| -rw-r--r-- | autoload/jsx_pretty/comment.vim | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/autoload/jsx_pretty/comment.vim b/autoload/jsx_pretty/comment.vim index 932d5535..4ce4e3a7 100644 --- a/autoload/jsx_pretty/comment.vim +++ b/autoload/jsx_pretty/comment.vim @@ -2,7 +2,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_cursor = getcurpos() +  let save_view = winsaveview()    if syn_start =~? '^jsx'      let line = getline(".") @@ -23,7 +23,7 @@ function! jsx_pretty#comment#update_commentstring(original)    endif    " Restore the cursor position -  call setpos('.', save_cursor) +  call winrestview(save_view)  endfunction  function! s:syn_name(lnum, cnum) | 
