Revert "input: remove unneeded(?) term_reset_view() calls"

This reverts commit 739c5cf7f0.

The original commit stated:

  Not sure why these were added here; they don't appear to be
  needed (we're writing to the client - it's up to the client to echo
  stuff, in which case we redraw as usual).

But, client output doesn't cause a scrollback/view reset.
This commit is contained in:
Daniel Eklöf 2019-11-20 10:41:40 +01:00
parent fc961bb30e
commit 1bc9835246
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -230,7 +230,7 @@ keyboard_key(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial,
else if (sym == XKB_KEY_V) {
selection_from_clipboard(term, serial);
//term_reset_view(term);
term_reset_view(term);
found_map = true;
}
@ -324,7 +324,7 @@ keyboard_key(void *data, struct wl_keyboard *wl_keyboard, uint32_t serial,
term_to_slave(term, buf, count);
}
//term_reset_view(term);
term_reset_view(term);
selection_cancel(term);
}
}