sandy

text editor
git clone git://git.suckless.org/sandy
Log | Files | Refs | README | LICENSE

commit 5b563fcc21a87e9374f2aef5b85df50b55e2bf2c
parent f4e4e27c77714c1187ed15c8081b837ec88a71f3
Author: Rafael Garcia <rafael.garcia.gallego@gmail.com>
Date:   Sun,  5 Jun 2011 03:26:26 +0200

Revert namechange for pipe command, which led to bug.
Diffstat:
config.def.h | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/config.def.h b/config.def.h @@ -29,9 +29,9 @@ static const char nlstr[1] = { 0 }; #define FIND PROMPT("Find:", "${SANDY_FIND}", "/") #define FINDBW PROMPT("Find (back):", "${SANDY_FIND}", "?") -#define PIPE PROMPT("Pipe:", "${SANDY_PIPE}", "|") +#define PIPE PROMPT("Pipe:", "${SANDY_PIPE}", "pipe ") #define SAVEAS PROMPT("Save as:", "${SANDY_FILE}", "w") -#define CMD_P PROMPT("Command:", "/\n?\n|\nw\nsyntax\noffset", "") +#define CMD_P PROMPT("Command:", "/\n?\nw\npipe\nsyntax\noffset", "") /* Args to f_pipe / f_pipero */ /* TODO: make sandy-sel to wrap xsel or standalone */ @@ -147,8 +147,8 @@ static Command cmds[] = { /* Use only f_ funcs that take Arg.v */ {NULL, "^([0-9]+)$", { 0, 0 }, f_line }, {NULL, "^/(.*)$", { 0, 0 }, f_findfw }, {NULL, "^\\?(.*)$", { 0, 0 }, f_findbw }, -{NULL, "^\\|[ \t]*(.*)$", { t_rw, 0 }, f_pipe }, -{NULL, "^\\|[ \t]*(.*)$", { 0, 0 }, f_pipero }, +{NULL, "^pipe (.*)$", { t_rw, 0 }, f_pipe }, +{NULL, "^pipe (.*)$", { 0, 0 }, f_pipero }, {NULL, "^w[ \t]*(.*)$", { 0, 0 }, f_save }, {NULL, "^syntax (.*)$", { 0, 0 }, f_syntax }, {NULL, "^offset (.*)$", { 0, 0 }, f_offset },