projects
/
selector.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87e22fc
)
Restricted the ^Q in the injection to the control characters.
author
Francois Fleuret
<francois@fleuret.org>
Tue, 26 May 2009 19:35:11 +0000
(21:35 +0200)
committer
Francois Fleuret
<francois@fleuret.org>
Tue, 26 May 2009 19:35:11 +0000
(21:35 +0200)
selector.cc
patch
|
blob
|
history
diff --git
a/selector.cc
b/selector.cc
index
a6d3d7e
..
27225b9
100644
(file)
--- 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);
}