Mercurial > libervia-backend
comparison frontends/src/primitivus/primitivus @ 1952:2c1a1b56dd22
primitivus: fixed window resize (was blocked by paste detection)
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 23 Apr 2016 23:46:35 +0200 |
parents | c5fd304d0976 |
children | 5fbe09b9b568 b34fdb44b7d4 |
comparison
equal
deleted
inserted
replaced
1951:ac89f455fcbf | 1952:2c1a1b56dd22 |
---|---|
382 return | 382 return |
383 | 383 |
384 ## paste detection/handling | 384 ## paste detection/handling |
385 if (len(input_) > 1 and # XXX: it may be needed to increase this value if buffer | 385 if (len(input_) > 1 and # XXX: it may be needed to increase this value if buffer |
386 not isinstance(input_[0], tuple) and # or other things result in several chars at once | 386 not isinstance(input_[0], tuple) and # or other things result in several chars at once |
387 not 'window' in input_[0]): # (e.g. using Primitivus through ssh). Need some testing | 387 not 'window resize' in input_): # (e.g. using Primitivus through ssh). Need some testing |
388 # and experience to adjust value. | 388 # and experience to adjust value. |
389 if input_[0] == 'begin paste' and not self._bracketed_paste: | 389 if input_[0] == 'begin paste' and not self._bracketed_paste: |
390 log.info(u"Bracketed paste mode detected") | 390 log.info(u"Bracketed paste mode detected") |
391 self._bracketed_paste = True | 391 self._bracketed_paste = True |
392 | 392 |