zsh-users
 help / color / mirror / code / Atom feed
* Completion/matcher error with file names that contain
@ 2018-09-16  8:47 David Woodfall
  0 siblings, 0 replies; only message in thread
From: David Woodfall @ 2018-09-16  8:47 UTC (permalink / raw)
  To: Zsh Users

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
                                                           (____)//
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-09-16  8:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-16  8:47 Completion/matcher error with file names that contain David Woodfall

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).