X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=selector.cc;h=27225b9cec383205e5ffa3808c7f85f12bf8681b;hb=2cb82b02fab268f23ce67cee81438a1a0600f20d;hp=a6d3d7e5d072e1d41b96465e303b60258b156445;hpb=87e22fcdf5fe0824932f2d259bd8969ea7d88092;p=selector.git diff --git a/selector.cc b/selector.cc index a6d3d7e..27225b9 100644 --- a/selector.cc +++ b/selector.cc @@ -73,7 +73,7 @@ void inject_into_tty_buffer(char *string) { const char control_q = '\021'; // Put the selected string in the tty input buffer for(const char *k = string; *k; k++) { - if(add_control_qs) { + if(add_control_qs && !(*k >= ' ' && *k <= '~')) { // Add ^Q to quote control characters ioctl(STDIN_FILENO, TIOCSTI, &control_q); }