summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
diff options
context:
space:
mode:
authorChris Webb <chris@arachsys.com>2023-11-24 12:55:45 +0000
committerChris Webb <chris@arachsys.com>2023-11-24 12:55:45 +0000
commit32680e5d65a722c4b5845ae8d8f1275928304999 (patch)
treef16ab70279de6dad94dea5f930c982ad61e8414b /src/input_handler.cc
parent990e92a5f320953bab12ba2c0419d382cd68102e (diff)
Skip output synchronization query when explicitly disabled
Some terminals misbehave when queried for output synchronization support, such as Windows Terminal as reported in https://github.com/mawww/kakoune/issues/5032 The relatively long response from a terminal which does support output-sync is also prone to getting torn over a slow link such as a serial console, causing stray input to the editor. In ui_options, the terminal_synchronized option controls the use of this feature, but unfortunately the query is unconditionally sent at startup even when this is set false. Skip the query at startup when terminal_synchronized is explicitly false. We query at most once per terminal in set_ui_options so the behaviour is correct both when kakoune is started with terminal_synchronized unset and when it is started with terminal_synchronized set false but this is later unset.
Diffstat (limited to 'src/input_handler.cc')
0 files changed, 0 insertions, 0 deletions