Commit d3c0fe39 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

options: make --rawsequences disable --mouse, to prevent entering junk

When using --raw, ncurses does not catch and convert any mouse event,
and thus the coordinates of a mouse click would get inserted into the
buffer as seemingly random characters.  So, let --rawsequences override
and disable --mouse, to prevent the accidental entering of junk.

This fixes https://savannah.gnu.org/bugs/?55303.
parent 997826d7
Showing with 4 additions and 0 deletions
+4 -0
......@@ -2430,6 +2430,10 @@ int main(int argc, char **argv)
#endif
}
/* When getting untranslated escape sequences, the mouse cannot be used. */
if (ISSET(RAW_SEQUENCES))
UNSET(USE_MOUSE);
#ifdef ENABLE_HISTORIES
/* Initialize the pointers for the Search/Replace/Execute histories. */
history_init();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment