From e01e1d8ab5c24da686166538bd57b624befe3513 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Wed, 22 Jan 2020 13:25:17 +0100 Subject: [PATCH] tweaks: remove the now-unused meta flag from 'keystruct' --- src/global.c | 1 - src/nano.h | 2 -- 2 files changed, 3 deletions(-) diff --git a/src/global.c b/src/global.c index e801aaf6..a36ac7db 100644 --- a/src/global.c +++ b/src/global.c @@ -531,7 +531,6 @@ int keycode_from_string(const char *keystring) void assign_keyinfo(keystruct *s, const char *keystring, const int keycode) { s->keystr = keystring; - s->meta = ((keystring[0] == 'M' || keystring[0] == 'S') && keycode < 0x7F); s->keycode = (keycode ? keycode : keycode_from_string(keystring)); } diff --git a/src/nano.h b/src/nano.h index aa54cac8..c008d385 100644 --- a/src/nano.h +++ b/src/nano.h @@ -422,8 +422,6 @@ typedef struct rcoption { typedef struct keystruct { const char *keystr; /* The string that describes the keystroke, like "^C" or "M-R". */ - bool meta; - /* Whether this is a Meta keystroke. */ int keycode; /* The integer that, together with meta, identifies the keystroke. */ int menus;