othree / html5.vim

HTML5 omnicomplete and syntax
http://www.vim.org/scripts/script.php?script_id=3236
934 stars 76 forks source link

Getting wrong line on curtext variable fixed #97

Open romerixo opened 6 years ago

romerixo commented 6 years ago

The function getline(v:lnum) is returning a wrong string since v:lnum is the next line to the current one, so v:lnum - 1 will be the current line number.