keymacro_print(): * Print the binding associated with key key. * Print entire el->el_keymacro.map if null */
| 257 | * Print entire el->el_keymacro.map if null |
| 258 | */ |
| 259 | protected void |
| 260 | keymacro_print(EditLine *el, const Char *key) |
| 261 | { |
| 262 | |
| 263 | /* do nothing if el->el_keymacro.map is empty and null key specified */ |
| 264 | if (el->el_keymacro.map == NULL && *key == 0) |
| 265 | return; |
| 266 | |
| 267 | el->el_keymacro.buf[0] = '"'; |
| 268 | if (node_lookup(el, key, el->el_keymacro.map, (size_t)1) <= -1) |
| 269 | /* key is not bound */ |
| 270 | (void) fprintf(el->el_errfile, "Unbound extended key \"" FSTR |
| 271 | "\"\n", key); |
| 272 | return; |
| 273 | } |
| 274 | |
| 275 | |
| 276 | /* node_trav(): |
no test coverage detected