~vcs-imports/nano/master

« back to all changes in this revision

Viewing changes to src/global.c

  • Committer: Benno Schulenberg
  • Date: 2023-10-16 06:55:06 UTC
  • Revision ID: git-v1:ef35ea72cfaada26f6ee1ca3473e1ce78481f6b7
input: neutralize two spurious keycodes from VTE terminals

At least some of the VTE-based terminals claim to be compatible with
xterm-25color (and set TERM to that value).  But they really aren't:
they mishandle the focus-in and focus-out events, for example.  So,
catch and discard the corresponding keycodes that nano shouldn't be
seeing at all.

This improves the fix for https://savannah.gnu.org/bugs/?64578.

Show diffs side-by-side

added added

removed removed

Lines of Context:
107
107
int altinsert, altdelete;
108
108
int shiftaltleft, shiftaltright, shiftaltup, shiftaltdown;
109
109
#endif
 
110
int mousefocusin, mousefocusout;
110
111
 
111
112
#ifdef ENABLED_WRAPORJUSTIFY
112
113
ssize_t fill = -COLUMNS_FROM_EOL;