(term_get_fkeys): If not initialized, init Vfunction_key_map.
This commit is contained in:
parent
c4a2dc647a
commit
3e65092fb0
1 changed files with 4 additions and 0 deletions
|
@ -1240,6 +1240,10 @@ term_get_fkeys (address)
|
|||
extern char *tgetstr ();
|
||||
int i;
|
||||
|
||||
/* This can happen if CANNOT_DUMP or with strange options. */
|
||||
if (!initialized)
|
||||
Vfunction_key_map = Fmake_sparse_keymap (Qnil);
|
||||
|
||||
for (i = 0; i < (sizeof (keys)/sizeof (keys[0])); i++)
|
||||
{
|
||||
char *sequence = tgetstr (keys[i].cap, address);
|
||||
|
|
Loading…
Add table
Reference in a new issue