mirror of
https://github.com/adamdruppe/arsd.git
synced 2025-04-26 05:10:01 +03:00
paste chunk unnecessary on most systems and harmful
This commit is contained in:
parent
738148b861
commit
444eaa9759
2 changed files with 36 additions and 1 deletions
|
@ -210,7 +210,11 @@ class TerminalEmulator {
|
|||
if(bracketedPasteMode)
|
||||
sendToApplication("\033[200~");
|
||||
|
||||
enum MAX_PASTE_CHUNK = 4000;
|
||||
version(use_libssh2)
|
||||
enum MAX_PASTE_CHUNK = 4000;
|
||||
else
|
||||
enum MAX_PASTE_CHUNK = 1024 * 1024 * 10;
|
||||
|
||||
if(data.length > MAX_PASTE_CHUNK) {
|
||||
// need to chunk it in order to receive echos, etc,
|
||||
// to avoid deadlocks
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue