1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-07-30 13:47:46 +00:00

fishgen: Drop unnecessary line length check (#1118)

The following starts-with 'complete' where filter covers it as well.
This commit is contained in:
Jan Klass 2025-05-11 15:58:19 +02:00 committed by GitHub
parent 4f7d9a626a
commit f371420c5b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -39,7 +39,6 @@ def parse-fish [] {
# make use of detect columns -n which with one like properly tokenizers arguments including across quotes
def tokenize-complete-lines [] {
lines
| where ($it | str length) > 0 # remove any empty lines
| where $it starts-with 'complete' # only complete command lines
| each {
str replace -a "\\\\'" "" # remove escaped quotes ' which break detect columns