|
@@ -394,15 +394,14 @@ int tinyrl_read(tinyrl_t *tinyrl)
|
|
|
|
|
|
assert(tinyrl);
|
|
assert(tinyrl);
|
|
|
|
|
|
- // Some commands can't be processed immediately by handlers and need some
|
|
|
|
- // network exchange for example. In this case we will not execute
|
|
|
|
- // redisplay() after char processing because command is not really
|
|
|
|
- // finished. Drop busy flag here because engine ready to get new input.
|
|
|
|
tinyrl_set_busy(tinyrl, BOOL_FALSE);
|
|
tinyrl_set_busy(tinyrl, BOOL_FALSE);
|
|
|
|
|
|
while ((rc = vt100_getchar(tinyrl->term, &key)) > 0) {
|
|
while ((rc = vt100_getchar(tinyrl->term, &key)) > 0) {
|
|
count++;
|
|
count++;
|
|
process_char(tinyrl, key);
|
|
process_char(tinyrl, key);
|
|
|
|
+ // Some commands can't be processed immediately by handlers and
|
|
|
|
+ // need some network exchange for example. In this case we will
|
|
|
|
+ // not execute redisplay() here.
|
|
if (!tinyrl->utf8_cont && !tinyrl_busy(tinyrl)) {
|
|
if (!tinyrl->utf8_cont && !tinyrl_busy(tinyrl)) {
|
|
tinyrl_redisplay(tinyrl);
|
|
tinyrl_redisplay(tinyrl);
|
|
// printf("%s\n", tinyrl->line.str);
|
|
// printf("%s\n", tinyrl->line.str);
|