From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17989 invoked by alias); 22 Jun 2016 20:11:37 -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: X-Seq: 21698 Received: (qmail 17233 invoked from network); 22 Jun 2016 20:11:36 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1466626293; bh=qWvVBwNseRa9x174WTgLffngpnE2Mw94fiVE+J5mMzo=; h=cc:In-reply-to:From:References:To:Subject:Date:From:Subject; b=AGAEzPew6zNkpQ4/AeZf6ClZVtxw1wXLvlNMYNtDL8nJpLyg1E01JQZlI1RvU3hpumXJeE+x/LA70B3cNJ/qaoh1L3QoN8WSDQj51baXbcdNui7tTGwFk7e8b3aBTlCDdKJHxsZzaQXXkX9kzLupEqoE/NRFs3kPTgYPVwDijxwAIj/ZM5MuERhMaepyzT8o4iReJj4o3Fxp9XZQC3lawEcJs4nMTmlThbydoOiqydnBRgECVpPM8uSSVSKah91kbFOscVMC8tq+5NEr1bDOXtnNy4/PgSLQ22+1he5xETlLqbcrOPykRn4NjPXu29ZeZ1n7TQtUcUWe5F+lRBl8Ow== X-Yahoo-Newman-Id: 935464.960.bm@smtp140.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: No5kmh8VM1lVuKmcwHZuCXJGugdMv7VrnenL.L5do_ex6JQ ohYlTaTKuReU3iQulBrqC48eyH9hEWCmFijKpsrdlgNIFRXzfj3TtKvsiCKE m9aCzcaM46vGm7Sbsx8.y7vwGkQkb5FKdbvQVc61W_TCXrcj34AU0HI4Sxut avPGfUSKP_a3r8GyPqMhFVdgVR6tEpxNc.BdQFjTLXrcAkkKy2wAlx3FUT.E DIqWg_6r0XCkXzrgUHnZW20G2LQ_BPknzB5txm1eLUfBgT6AkrTrtqARWx_x nscZCyqgTxV_Jppat0pFSIOx87xi.KntP0r32C8MLr1KI8WC2ms1qkWbmbIP Q0ddmfA5T59u8DvhsGa3ESOpVbv0uFPkBtmM_qJI0BT56j.nbub.Er7wDLZX FRjdX48Yoy4Of_zo6MjgybjIhFw2zqVXEQmyXBvaWH8.8opLxd7dB3fE_uej iUhvU5MSP1daMgg5_wx0rRERqNsXf9Jw6tj_ZNtkBeE4inc_xqQLTA1TpC33 7VL.HTnNiIwgK7sNqqWppmTXKoe0ihA-- X-Yahoo-SMTP: opAkk_CswBAce_kJ3nIPlH80cJI- cc: zsh-users@zsh.org In-reply-to: From: Oliver Kiddle References: <21997.1466550647@thecus.kiddle.eu> <160621234233.ZM10369@torch.brasslantern.com> <25350.1466608182@thecus.kiddle.eu> To: Filipe Silva Subject: Re: [vi-mode] widgets for case manipulation: `gU` and `U` in visual mode MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <26675.1466626292.1@thecus.kiddle.eu> Date: Wed, 22 Jun 2016 22:11:32 +0200 Message-ID: <26676.1466626292@thecus.kiddle.eu> Filipe Silva wrote: > > Just a small update on the fix. the correct condition is as follows (the > other that I've gave you also contains a bug). > > if [[ $CURSOR = '0' ]]; then I've just noticed that we also need to account for the cursor being at the beginning of a line other than the first one so the correct condition is: if [[ CURSOR -eq 0 || $BUFFER[CURSOR] = $'\n' ]]; then Oliver