From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id ca5cffc5 for ; Fri, 17 Jan 2020 08:24:25 +0000 (UTC) Received: (qmail 7165 invoked by alias); 17 Jan 2020 08:24:17 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 45324 Received: (qmail 11309 invoked by uid 1010); 17 Jan 2020 08:24:17 -0000 X-Qmail-Scanner-Diagnostics: from mail-il1-f173.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.1/25691. spamassassin: 3.4.2. Clear:RC:0(209.85.166.173):SA:0(-2.0/5.0):. Processed in 5.971354 secs); 17 Jan 2020 08:24:17 -0000 X-Envelope-From: roman.perepelitsa@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.166.173 as permitted sender) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=49Xtcp44Jqm12eF+wiQcI/kICvUcFG2UN95OxXCWaWA=; b=fquLkrbVdJhlvuqLAgEvuGR25tfciYtAo2slL6qf8fGfoqgEFlcm8zbGEUftyDjoJu 5v3kDbPYoriPFpkhOt+rTC3b4uwC9UMSGq0fosp3rTwTJYKp+nicqLfW/GMRpAB6SoyM HRRmO97y3UelTiJissR8ISD6gdRYkIhtmtf6q1QwlnzbL1nvU/YUKQro68I0EM1xeMFx A2BmpukUOTl19uJDRn12/0Lt/0juqbrtNI146xdafCeySPehQO/vIL0R51nCm/wDIsif mrQe4EKbeNV2ZaHI06XxPBgjcE+f17KQuGfeKiF2pLqiQxZGWD1cU9uGxNAloiFX4Er1 rFTQ== X-Gm-Message-State: APjAAAUdWKfGVtOWI0zRhmNZOIPjXIto5A+i6qcgIdDYjBUf9utUCqYY i2ZGkZLkz7ll4vlaTWbE0b4oB1CZ6wweuPSz20gNjpOI X-Google-Smtp-Source: APXvYqwuDkFODnejXIqz1PtOUPlBV6mKbqGDBIctw2YBVs7KnUznkwsAQFajFjCoPkR5LQYUi1SKM4MfC0WNFDiROPQ= X-Received: by 2002:a92:d642:: with SMTP id x2mr2037931ilp.169.1579249417709; Fri, 17 Jan 2020 00:23:37 -0800 (PST) MIME-Version: 1.0 References: <6D242ADC-BAEC-450D-B7BC-974988C38066@dana.is> In-Reply-To: <6D242ADC-BAEC-450D-B7BC-974988C38066@dana.is> From: Roman Perepelitsa Date: Fri, 17 Jan 2020 09:23:26 +0100 Message-ID: Subject: Re: unicode in prompt breaks command search To: dana Cc: Nathan Sidwell , Zsh hackers list Content-Type: text/plain; charset="UTF-8" Zsh can figure out how many columns Unicode characters take provided that you configure locale correctly. The most common reason why Zsh might think that every byte is one character is because the encoding in the current locale is not UTF-8. There might be other reasons for the behavior you describe. This entry from powerlevel10k FAQ can be helpful in diagnosing the problem: https://github.com/romkatv/powerlevel10k/blob/master/README.md#why-is-my-cursor-in-the-wrong-place. It's mostly not specific to powerlevel10k. Roman.