diff options
| author | Tristan Knight <admin@snappeh.com> | 2024-09-08 11:44:46 +0100 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-08 03:44:46 -0700 | 
| commit | 003b8a251dc1184e36c222f675bf79a50a40ab3a (patch) | |
| tree | e30192fa5362163eafc657c6ba5f4d512ee4cb53 /runtime/indent/verilog.vim | |
| parent | 0cfbc6eafff731d2d2ecce1f6ceb40be340473f3 (diff) | |
| download | rneovim-003b8a251dc1184e36c222f675bf79a50a40ab3a.tar.gz rneovim-003b8a251dc1184e36c222f675bf79a50a40ab3a.tar.bz2 rneovim-003b8a251dc1184e36c222f675bf79a50a40ab3a.zip | |
fix(lsp): handle out-of-bounds character positions #30288
Problem:
str_byteindex_enc could return an error if the index was longer than the
lline length. This was handled in each of the calls to it individually
Solution:
* Fix the call at the source level so that if the index is higher than
  the line length, line length is returned as per LSP specification
* Remove pcalls on str_byteindex_enc calls. No longer needed now that
  str_byteindex_enc has a bounds check.
Diffstat (limited to 'runtime/indent/verilog.vim')
0 files changed, 0 insertions, 0 deletions
