Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Beta 19[no patches], C-t at the beginning of a line
- X-seq: zsh-workers 1212
- From: Steven L Baur <steve@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx
- Subject: Beta 19[no patches], C-t at the beginning of a line
- Date: 28 May 1996 09:43:59 -0700
- Mail-copies-to: never
- Sender: steve@xxxxxxxxxxxx
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@xxxxxxxxxxxx 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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author