From 25d397e7b3472d07547905ebbe3b7dbae0955bc0 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Wed, 22 Jan 2020 14:05:18 +0100 Subject: [PATCH] feedback: report Ctrl+Alt keystrokes as unbindable When reporting them as simply unbound, the user might think that M-^X keystrokes might somehow become bound. --- src/nano.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/nano.c b/src/nano.c index d465c06c..e86a6d67 100644 --- a/src/nano.c +++ b/src/nano.c @@ -1356,6 +1356,10 @@ void unbound_key(int code) else if (meta_key) { if (code == '[') statusline(ALERT, _("Unbindable key: M-[")); +#ifndef NANO_TINY + else if (code < 0x20) + statusline(ALERT, _("Unbindable key: M-^%c"), code + 0x40); +#endif else statusline(ALERT, _("Unbound key: M-%c"), toupper(code)); } else if (code == ESC_CODE)