forked from VimPlug/emmet-vim
fix #290. use getpos('.') instead
This commit is contained in:
@@ -623,10 +623,10 @@ function! emmet#lang#html#parseTag(tag) abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! emmet#lang#html#toggleComment() abort
|
function! emmet#lang#html#toggleComment() abort
|
||||||
let orgpos = emmet#util#getcurpos()
|
let orgpos = getpos('.')
|
||||||
let curpos = emmet#util#getcurpos()
|
let curpos = getpos('.')
|
||||||
let mx = '<\%#[^>]*>'
|
let mx = '<\%#[^>]*>'
|
||||||
while 1
|
while getchar(0) == 0
|
||||||
let block = emmet#util#searchRegion('<!--', '-->')
|
let block = emmet#util#searchRegion('<!--', '-->')
|
||||||
if emmet#util#regionIsValid(block)
|
if emmet#util#regionIsValid(block)
|
||||||
let block[1][1] += 2
|
let block[1][1] += 2
|
||||||
@@ -642,7 +642,7 @@ function! emmet#lang#html#toggleComment() abort
|
|||||||
if pos1[0] == 0 && pos1[1] == 0
|
if pos1[0] == 0 && pos1[1] == 0
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
let curpos = emmet#util#getcurpos()
|
let curpos = getpos('.')
|
||||||
continue
|
continue
|
||||||
endif
|
endif
|
||||||
let pos1 = block[0]
|
let pos1 = block[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user