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.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 e6ca10b5 for ; Sat, 12 Oct 2019 15:07:24 +0000 (UTC) Received: (qmail 9281 invoked by alias); 12 Oct 2019 15:07:16 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 24346 Received: (qmail 9156 invoked by uid 1010); 12 Oct 2019 15:07:16 -0000 X-Qmail-Scanner-Diagnostics: from mail-wm1-f54.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.0/25598. spamassassin: 3.4.2. Clear:RC:0(209.85.128.54):SA:0(-2.0/5.0):. Processed in 2.916161 secs); 12 Oct 2019 15:07:16 -0000 X-Envelope-From: doron.behar@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.128.54 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=Kc1oA/B61qJ9WC9vl34Cx7kLoQ1emPZMmxf+u+kqwKE=; b=FfCxhoczUYA3WM4gHocB0ngwly49HuHU9Pn85qGPkqbKHxl0DJbiSiDxmnb1f9drfn X6qLQzXNIXx8XOH391vA1294J6BFShoHK7LLArlMMG3VmiLwygu0t24wkq8c6q9pLb/q HACwWfod5vFyBrdnMBs3ynU93HO1iZ8Zye9q0FyaBGfJ/rmGGRdfe/TRbutbi770KIf5 MwLwWBefCWMtVx9oDt2Asdg7LoAKiyrBK8v3OMVpo3IHadeCOGRZiT1iLToTbtyyKLIR 8MyqOqONn+hmOCZfSlrHMwULGoaC9f4qySgH03Fwy3sXsBHWteXu0JD+nIk43zSDBRlU RH4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=Kc1oA/B61qJ9WC9vl34Cx7kLoQ1emPZMmxf+u+kqwKE=; b=HbyMauXTHCDZldIzsLfydv1QJY/kJP1WcOm+83lgYnb2OY2vJb71dRI3rOzkicpEXs APV3KkxrvCGXplAgsXZyCu4RLBMAJBE4SwMFpoXUe03kfbnHukE+Fh+IXZxTcHeADp6o ckg7/W2/DTUc4+R1+RY3uKQ7BxYhyEx+zJXrCyIpaWAvFgXnaWwLktABKQd+8NPXWGVp 9zKAQ+ZuPGPXOvoizCSGWEy5TqIbtHqYXaBzpt6ZIAIHk2ZjnlLg3NTn6VBgiVgUkPhg WEQDNndEl2rmwdtCaMXj8xq3OPVmCucb2EyzOdyF7sn4CpgZybhP2h7dgguSK5hnoiZF 5Yhg== X-Gm-Message-State: APjAAAWHnjGLNf2rqYmI35HmZcLYfSmVqyidu97r0UlgG8Jwqs6/7J+9 XQE4+n/78OgZiX6KUO1wNn3ZAwww6wU= X-Google-Smtp-Source: APXvYqwExwLdVuGp1e5wxvWe7dlnzVHlbO1GiPsc73DNyfIESnY0qotgW7mVrZyPu2EsK+On2w29JQ== X-Received: by 2002:a7b:c219:: with SMTP id x25mr4192179wmi.143.1570892798231; Sat, 12 Oct 2019 08:06:38 -0700 (PDT) Date: Sat, 12 Oct 2019 18:06:11 +0300 From: Doron Behar To: zsh-users@zsh.org Subject: ZLE Vi-mode: visual mode selection doesn't match the characters highlighted Message-ID: <20191012150611.rwjwhbiqpvwla656@NUX> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: NeoMutt/20180716 Hey all, I'm having a small inconvenience with the way characters are highlighted in visual mode. Say my $BUFFER has the following text, current $KEYMAP is "vicmd", and the cursor is located where ^ is: ZSH is the best shell ^ If I press `v`, and then `F`, the cursor is located as expected here: ZSH is the best shell ^ ----- (selected characters) Naturally, the selection now includes all characters from `t` to the space (inclusive), as marked with the hyphens. The problem is, that only the 3 characters ("bes") are highlighted so it's not clear what characters exactly are selected. In comparison, when moving _forward_ in visual mode, the characters highlighted include all letters selected. This behaviour is not like in Vim (with it's default settings) and is confusing IMO. My expectation is that every character selected will be highlighted, no matter whether the cursor is at the start or the end of the selection. Is there a way to tweak this behavior? Doron.