extern VbCore vb;
+static void showcmd(int c);
static char *transchar(int c);
static gboolean map_delete_by_lhs(const char *lhs, int len, char mode);
static int keyval_to_string(guint keyval, guint state, guchar *string);
/* send the key to the parser */
if (RESULT_MORE != mode_handle_key((int)qk)) {
- map_showcmd(0);
+ showcmd(0);
showlen = 0;
} else if (showlen > 0) {
showlen--;
} else {
- map_showcmd(qk);
+ showcmd(qk);
}
}
/* appen only those chars that are not already in showcmd */
i += showlen;
while (i < map.qlen) {
- map_showcmd(map.queue[i++]);
+ showcmd(map.queue[i++]);
showlen++;
}
}
/* flush the show command to make room for possible mapped command
* chars to show for example if :nmap foo 12g is use we want to
* display the incomplete 12g command */
- map_showcmd(0);
+ showcmd(0);
showlen = 0;
if (match->inlen < match->mappedlen) {
/**
* Put the given char onto the show command buffer.
*/
-void map_showcmd(int c)
+static void showcmd(int c)
{
char *translated;
int old, extra, overflow;
void map_handle_string(const char *str, gboolean use_map);
void map_insert(const char *in, const char *mapped, char mode, gboolean remap);
gboolean map_delete(const char *in, char mode);
-void map_showcmd(int c);
#endif /* end of include guard: _MAP_H */