helix-mods/helix-term/src
Gokul Soumya a8b123fe17
Fix byte index error in signature help highlighting
The language server sends a char offset range within the
signature help label text to highlight as the current parameter,
but helix uses byte offset ranges for rendering highlights. This
was brought up in the [review of the original signature help PR][1],
but the ranges were being highlighted correctly, and there were no
out of bound or indexing panics. Turns out rust-analyzer was
[incorrectly sending byte offsets] instead of char offsets and this
made it seem like all was well and good with offsets in helix during
initial testing.

[1]: https://github.com/helix-editor/helix/pull/1755#discussion_r906715371
[2]: https://github.com/rust-lang/rust-analyzer/pull/12272
2022-07-29 14:31:21 +09:00
..
commands Fix byte index error in signature help highlighting 2022-07-29 14:31:21 +09:00
keymap jumplist picker (#3033) 2022-07-22 10:21:46 +09:00
ui add configurable / theme-able statusline separator string (#3175) 2022-07-27 08:47:22 +09:00
application.rs Suport diagnostic code (#3096) 2022-07-26 10:26:50 +09:00
args.rs adds --vsplit and --hsplit arguments (#2773) 2022-07-01 18:27:32 +09:00
commands.rs Use OR of all selections in search_selection command (#3138) 2022-07-27 18:02:19 +09:00
compositor.rs Add lsp signature help (#1755) 2022-07-19 11:28:24 +09:00
config.rs Move top level lsp config to editor.lsp (#1868) 2022-03-28 10:11:52 +09:00
health.rs fix: do not color health summary when stdout is piped (#2836) 2022-06-20 17:07:32 +02:00
job.rs fix(command): write-quit: do not quit if write fails 2022-06-18 23:57:47 -04:00
keymap.rs Reuse menu::Item trait in picker (#2814) 2022-07-02 13:21:27 +02:00
lib.rs Add refresh-config and open-config command (#1803) 2022-03-25 18:05:20 +09:00
main.rs adds --vsplit and --hsplit arguments (#2773) 2022-07-01 18:27:32 +09:00