nushell/tests/fixtures/lsp/notifications/issue_11522.nu
Marc Schreiber 41119d3f88
Fix "Char index out of bounds" Error (#11526)
# Description

The code that converts Nushell's span into LSP line and character
indices accidentally treated the span as character indices while they
are byte indices. Fixes #11522.

# User-Facing Changes

None, just a bugfix.
2024-01-11 15:24:49 -06:00

7 lines
125 B
Plaintext

#!/usr/bin/env nu
# Important to reproduce the crash
# use a non ascii char somewhere in comments: è
[a b c d] | filter {