aboutsummaryrefslogtreecommitdiffhomepage
path: root/uzbl.c
diff options
context:
space:
mode:
authorGravatar DuClare <akarinotengoku@gmail.com>2009-05-16 13:40:54 +0300
committerGravatar DuClare <akarinotengoku@gmail.com>2009-05-16 13:40:54 +0300
commit5b2fc03f96d0f83a8e695c271655ccc10e2ef610 (patch)
treeab257fb86b5fb44600a0d805b65d26b0a81f1088 /uzbl.c
parent96138fe303577f328652f47418230bbcddbfa7c6 (diff)
Rename CMD to ACT for clarity
Diffstat (limited to 'uzbl.c')
-rw-r--r--uzbl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/uzbl.c b/uzbl.c
index 0ffee5e..f11e34d 100644
--- a/uzbl.c
+++ b/uzbl.c
@@ -767,7 +767,7 @@ setup_regex() {
G_REGEX_OPTIMIZE, 0, &err);
uzbl.comm.bind_regex = g_regex_new("^[Bb][a-zA-Z]*\\s+?(.*[^ ])\\s*?=\\s*([a-z][^\\n].+)$",
G_REGEX_UNGREEDY|G_REGEX_OPTIMIZE, 0, &err);
- uzbl.comm.cmd_regex = g_regex_new("^[Cc][a-zA-Z]*\\s+([^ \\n]+)\\s*([^\\n]*)?$",
+ uzbl.comm.act_regex = g_regex_new("^[Aa][a-zA-Z]*\\s+([^ \\n]+)\\s*([^\\n]*)?$",
G_REGEX_OPTIMIZE, 0, &err);
uzbl.comm.keycmd_regex = g_regex_new("^[Kk][a-zA-Z]*\\s+([^\\n]+)$",
G_REGEX_OPTIMIZE, 0, &err);
@@ -962,9 +962,9 @@ parse_cmd_line(const char *ctl_line) {
else
printf("Error in command: %s\n", tokens[0]);
}
- /* CMD command */
- else if(ctl_line[0] == 'C' || ctl_line[0] == 'c') {
- tokens = g_regex_split(uzbl.comm.cmd_regex, ctl_line, 0);
+ /* ACT command */
+ else if(ctl_line[0] == 'A' || ctl_line[0] == 'a') {
+ tokens = g_regex_split(uzbl.comm.act_regex, ctl_line, 0);
if(tokens[0][0] == 0) {
parse_command(tokens[1], tokens[2]);
g_strfreev(tokens);