Skip to content

Commit

Permalink
Make speedwalk execute aliases if defined instead of just sending
Browse files Browse the repository at this point in the history
directions (Elestir)
  • Loading branch information
SteveSlaven committed Jan 31, 2006
1 parent f9a1827 commit 40c05f3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion map.c
Expand Up @@ -24,6 +24,7 @@
#include "tty.h"
#include "edit.h"
#include "tcp.h"
#include "list.h"

/*
* mapping variables
Expand Down Expand Up @@ -177,7 +178,9 @@ int map_walk __P3 (char *,word, int,silent, int,maponly)
while (n--) {
*buf = *word;
if (!maponly) {
tcp_write(tcp_fd, buf);
if (*lookup_alias(buf))
parse_instruction(buf, 1, 0, 0); // we want to execute aliases n,e,s,w,u,d
else tcp_write(tcp_fd, buf);
}
if (is_main || maponly)
map_add_dir(*word);
Expand Down

0 comments on commit 40c05f3

Please sign in to comment.