nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] [PATCH] delete a marked region or line without affectin


From: David Ramsey
Subject: Re: [Nano-devel] [PATCH] delete a marked region or line without affecting the cutbuffer
Date: Mon, 22 Oct 2018 14:18:21 -0500

Brand Huntsman:
> First patch fixes a crash when cutting a region and then a line.
> Second patch adds "unmodified" before backspace/delete help
> descriptions. The third patch binds M-Del (or Esc Del) to zap function
> but has only been tested on linux console, xterm and urxvt.

I did some quick testing with these, and they do seem to work.

(Although your patches are now being mangled in another way: in addition
to the ">" before the "from:" line, the lines you add to the info page
that come out as a plus sign followed by an at sign followed by text are
now "helpfully" translated into "address@hidden", which makes them not
apply unless I manually adjust them.  Maybe just put your patch
sequences into a zip file and send that, to avoid all these issues?)

The third patch won't work with the -K/--rebindkeypad option, however,
since it doesn't handle escape sequences.  The attached patch (applied
after yours) fixes that problem for xterm, rxvt, Eterm, Konsole, and
xfce4-terminal: all of the major terminals nano supports except for
urxvt.  The problem with urxvt is that the double-escape sequence
handling needs to be revamped to make it work, since urxvt generates Esc
Esc [ 3 ~ (as in, Escape followed by the common escape sequence for
Delete), and I'm not sure how to do that properly without breaking the
iTerm stuff.

Attachment: 0004-input-properly-read-Alt-Delete-when-using-K-rebindke.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]