You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Duplicated text in the command line after where command #16129
When arguments after the where command are marked as invalid, such arguments containing characters followed by a ( have the part before the ( duplicated. If the ( is removed, or the argument becomes valid, the duplicated character disappear.
How to reproduce
Type ls | where a b 12345
Add ( at the end of the last argument, making it 12345(
The command line will show ls | where a b 1234512345(
Activity
blindFS commentedon Jul 8, 2025
Really weird, it only occurs on arguments at odd-numbered positions starting from 3.
132ikl commentedon Jul 9, 2025
this is duplicate of #15899, but this one is more discoverable so I'll close the other one
important info from that issue is that I bisected this to #15697, and this is specifically an issue with
nu-highlightblindFS commentedon Jul 9, 2025
Probably has something to do with the
best_guessofparse_oneof:nushell/crates/nu-parser/src/parser.rs
Lines 779 to 837 in 05e570a
fix: where cmd invalid argument, duplicates highlighted text
fix: highlighting a where command with invalid arguments can duplicat…
fix: highlighting a where command with invalid arguments can duplicat…