Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Completion/matcher error with file names that contain



unicode glyphs

zsh 5.6.2 in a plain linux console (which is set up for unicode.)

I get this error when I try to complete a non-existent file with 'ls'
and other commands when a file in pwd contains a unicode glyph in the
namw. e.g. 'PAБOTA'

516: utils.c:5456: BUG: unexpected end of string in mb_metacharlen()

After a little commenting out some of the completion lines in my
config I found that it comes down to the last line in my
matcher-list:

zstyle ':completion:*' matcher-list \
  'm:{a-zA-Z\-}={A-Za-z\_}' \
  'r:[^[:alpha:]]||[[:alpha:]]=** r:|=* m:{a-zA-Z\-}={A-Za-z\_}' \
  'r:|?=** m:{a-zA-Z\-}={A-Za-z\_}'

I'll admit right here that I found the last two lines in that
matcher-list on the net and don't have much clue on what the ones
that use =* do. I was looking for partial in-word completion so that
e.g. doing:

cd air<tab>

would complete to

cd vim-airline

Thoughts?

--

Note that if I can get you to "su and say" something just by asking,
you have a very serious security problem on your system and you should
look into it.
  -- Paul Vixie, vixie-cron 3.0.1 installation notes

                                                            .--.  oo
                                                           (____)//
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'



Messages sorted by: Reverse Date, Date, Thread, Author