`origtext' was not getting set correctly for escaped tokens (\\, \{,
[sgt/halibut] / input.c
diff --git a/input.c b/input.c
index a616ac9..493449c 100644 (file)
--- a/input.c
+++ b/input.c
@@ -426,6 +426,7 @@ token get_token(input *in) {
            c == '#' || c == '{' || c == '}' || c == '.') {
            /* single-char command */
            rdadd(&rs, c);
+           prevpos = rsc.pos;
        } else if (c == 'u') {
            int len = 0;
            do {