mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
fix(lsp): set end_col in formatexpr (#19676)
The last line was excluded from formatting via formatexpr because the character in the params was set to 0 instead of the end of line.
This commit is contained in:
committed by
GitHub
parent
2d5fce2cdb
commit
a46e6afb8b
@@ -113,7 +113,7 @@ end
|
||||
--- Convert byte index to `encoding` index.
|
||||
--- Convenience wrapper around vim.str_utfindex
|
||||
---@param line string line to be indexed
|
||||
---@param index number byte index (utf-8), or `nil` for length
|
||||
---@param index number|nil byte index (utf-8), or `nil` for length
|
||||
---@param encoding string utf-8|utf-16|utf-32|nil defaults to utf-16
|
||||
---@return number `encoding` index of `index` in `line`
|
||||
function M._str_utfindex_enc(line, index, encoding)
|
||||
|
||||
Reference in New Issue
Block a user