zsh-workers
 help / color / mirror / code / Atom feed
* Beta 19[no patches], C-t at the beginning of a line
@ 1996-05-28 16:43 Steven L Baur
  1996-05-28 20:45 ` Zoltan Hidvegi
  0 siblings, 1 reply; 3+ messages in thread
From: Steven L Baur @ 1996-05-28 16:43 UTC (permalink / raw)
  To: zsh-workers

I have Emacs bindings set, and C-t bound to gosmacs-transpose-chars.
When C-t is typed as the first characters of a line, the cursor moves
to beginning of the previous line, and everything typed with the cursor
in that position comes out strange: ``a'' is ^ß (beta), most other letters
come out as ^@.  Hitting C-k causes a coredump.

Typing one character, and then hitting C-t causes the typed character
to be changed to a ^@ and the cursor jumped to the previous line.

I am on Linux pre2.0.8 if that makes any difference.

    if (cs < 2 || line[cs - 1] == '\n' || line[cs - 2] == '\n') {
        if (line[cs] == '\n' || line[cs + 1] == '\n') {
            feep();
            return;
        }
        cs += (cs == 0 || line[cs - 1] == '\n') ? 2 : 1;
    }
    cc = line[cs - 2];
    line[cs - 2] = line[cs - 1];
    line[cs - 1] = cc;

Also, transpose-chars Does The Right Thing.
-- 
steve@miranova.com baur
Unsolicited commercial e-mail will be proofread for $250/hour.
Andrea Seastrand: For your vote on the Telecom bill, I will vote for anyone
except you in November.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Beta 19[no patches], C-t at the beginning of a line
  1996-05-28 16:43 Beta 19[no patches], C-t at the beginning of a line Steven L Baur
@ 1996-05-28 20:45 ` Zoltan Hidvegi
  1996-05-28 21:18   ` Steven L Baur
  0 siblings, 1 reply; 3+ messages in thread
From: Zoltan Hidvegi @ 1996-05-28 20:45 UTC (permalink / raw)
  To: Steven L Baur; +Cc: zsh-workers

[-- Attachment #1: Type: application/pgp, Size: 1434 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Beta 19[no patches], C-t at the beginning of a line
  1996-05-28 20:45 ` Zoltan Hidvegi
@ 1996-05-28 21:18   ` Steven L Baur
  0 siblings, 0 replies; 3+ messages in thread
From: Steven L Baur @ 1996-05-28 21:18 UTC (permalink / raw)
  To: zsh-workers

>>>>> "Zoltan" == Zoltan Hidvegi <hzoli@cs.elte.hu> writes:

sb> I have Emacs bindings set, and C-t bound to gosmacs-transpose-chars.
sb> When C-t is typed as the first characters of a line ...

Zoltan> Here is the fix.

Yup.  That does the trick.

Thanks BTW for taking over the care and feeding of zsh.  It's very
much appreciated.

Regards,
-- 
steve@miranova.com baur
Unsolicited commercial e-mail will be proofread for $250/hour.
Andrea Seastrand: For your vote on the Telecom bill, I will vote for anyone
except you in November.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1996-05-28 21:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-05-28 16:43 Beta 19[no patches], C-t at the beginning of a line Steven L Baur
1996-05-28 20:45 ` Zoltan Hidvegi
1996-05-28 21:18   ` Steven L Baur

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).