From dcaeb77ef2c5fad1810d242d7a96669e33c4b082 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Wed, 25 Sep 2024 13:56:20 +0200 Subject: inhibit some immediate editing commands after ^Q/^R string building constructs * This allows you to type ^Q^U (which would otherwise rub out the entire argument) and ^Q^W (which would otherwise rub out the ^Q). * ^Q^U coincidentally worked previously since the teco_state_stringbuilding_escaped state would default to teco_state_process_edit_cmd(). But it's better to make this feauture explicit. * This finally makes it possible to insert the ^W (23) char into a buffer. In interactive mode, you can still only type Caret+W as a string building construct. * ^G could also be inhibited after ^Q, but the control char is not used anywhere yet, so there is no point in doing that. --- doc/sciteco.7.template | 3 +++ 1 file changed, 3 insertions(+) (limited to 'doc') diff --git a/doc/sciteco.7.template b/doc/sciteco.7.template index a476091..ca93fa6 100644 --- a/doc/sciteco.7.template +++ b/doc/sciteco.7.template @@ -1694,6 +1694,9 @@ thus refers to the corresponding control code: Escape character \fIc\fP. The character is not handled as a string building or string termination character, so for instance \(lq^Q^Q\(rq translates to \(lq^Q\(rq. +Furthermore, some immediate editing commands are inhibited right after \fB^Q\fR, +so you can type \(lq^Q^U\(rq and \(lq^Q^W\(rq, which translate to control codes +21 and 23. .TP .SCITECO_TOPIC ^V^V ^Vc lower .B ^V^V -- cgit v1.2.3