mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-06 18:22:25 +02:00
new bindable readline command `execute-named-command', bound to M-x in emacs mode
This commit is contained in:
@@ -159,7 +159,9 @@ STREQ(const char *a, const char *b)
|
||||
static inline int
|
||||
STREQN(const char *a, const char *b, size_t n)
|
||||
{
|
||||
return ((n == 0) || ((a)[0] == (b)[0] && strncmp(a, b, n) == 0));
|
||||
return ((n == 0) ||
|
||||
(n == 1 && a[0] == b[0]) ||
|
||||
((a)[0] == (b)[0] && strncmp(a, b, n) == 0));
|
||||
}
|
||||
|
||||
/* More convenience definitions that possibly save system or libc calls. */
|
||||
|
||||
Reference in New Issue
Block a user