nushell: help -f is highlighting wrong

Describe the bug

The help -f in command is highlighting items wrong now, only in the usage column. See screenshot. image

How to reproduce

help -f in

Expected behavior

no unnecessary gaps between letters

Screenshots

No response

Configuration

key value
version 0.67.1
branch main
commit_hash 3cb9147f22966b76549db38aab521e081c0c6ef6
build_os windows-x86_64
build_target x86_64-pc-windows-msvc
rust_version rustc 1.61.0 (fe5b13d68 2022-05-18)
rust_channel 1.61.0-x86_64-pc-windows-msvc
cargo_version cargo 1.61.0 (a028ae42f 2022-04-29)
pkg_version 0.67.1
build_time 2022-08-29 08:57:50 -05:00
build_rust_channel release
features database, dataframe, default, trash, which, zip
installed_plugins custom-value generate, custom-value generate2, custom-value update, from parquet, gstat, inc, nu-example-1, nu-example-2, nu-example-3, query, query json, query web, query xml

Additional context

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 19 (12 by maintainers)

Most upvoted comments

From what I see it’s very likely related to tabled. See how it split input word into 2 😥

nice research @panicbit! thanks so much for your willingness to jump in and help figure out what’s happening - or at least point the finger. LOL. 😆 let’s see what @zhiburt has to say.

I’d rather it be accurate.

I did switched back to it.

the \u{1b}[39m\u{1b}[49m\u{1b} in all this above it totally wasteful. It’s setting the default foreground and background and then immediately changing it to u{1b}[32;40m. So, those 39’s and 49’s server no purpose at all and are never really used.

I agree that’s something better be fixed. That’s why I brought it. But yet currently it something which is not my glance on. if you don’t mind, I’ll put it off as a todo

https://github.com/zhiburt/tabled/issues/217

I’ve found the cause. Already fixed, but I need to do a bit more testing.

ref: https://github.com/zhiburt/tabled/pull/207

Actually, seems like I might have just been unable to compile those due to running out of disk space… so maybe it’s not actually related to tabled. I’ll look into what might be causing this issue using my brain now 🤡.

Thanks @panicbit.

@zhiburt Could you have a look at this too please to see if any recent tabled changes have broken the highlighting?