From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12277 invoked by alias); 19 Jul 2015 18:26:42 -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: X-Seq: 35837 Received: (qmail 20837 invoked from network); 19 Jul 2015 18:26:41 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_00,FSL_HELO_BARE_IP_2, RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.0 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-workers@zsh.org From: Yuri D'Elia Subject: Re: PATCH: highlight pasted text Date: Sun, 19 Jul 2015 20:09:20 +0200 Message-ID: References: <7277.1437023995@thecus.kiddle.eu> <150716131504.ZM18155@torch.brasslantern.com> <150718110859.ZM4405@torch.brasslantern.com> <19088.1437274234@thecus.kiddle.eu> <6704.1437328639@thecus.kiddle.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 151.44.131.63 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.0 In-Reply-To: <6704.1437328639@thecus.kiddle.eu> On 19/07/15 19:57, Oliver Kiddle wrote: > Yuri D'Elia wrote: >> But chopping off that newline if it's the last character... hmm, I still >> think that's a good idea. > > How about the following? It only strips the newline when pasting at > the end of the buffer with region inactive and only after putting the > unadulterated string in the cut buffer. I like it, that's a nice touch. To reply to Daniel as well, I'm ambivalent about the behavior. If you feel that's "not right" (and I see the reasons - no need to elaborate for me), I'm equally fine with literal pasting, so I cannot help you decide here.