diff options
| author | Simon Tatham <anakin@pobox.com> | 2004-08-20 09:20:38 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2004-08-20 09:20:38 +0000 |
| commit | f7ec9cb92caf8a57e144a4b3feb9c0f1f586feea (patch) | |
| tree | 4beff9bbbb18cce41b96531171613ce1f4898176 | |
| parent | 5c0cedb48e1891127a6bc545560e62b2cbcb35f2 (diff) | |
| download | halibut-f7ec9cb92caf8a57e144a4b3feb9c0f1f586feea.zip halibut-f7ec9cb92caf8a57e144a4b3feb9c0f1f586feea.tar.gz halibut-f7ec9cb92caf8a57e144a4b3feb9c0f1f586feea.tar.bz2 halibut-f7ec9cb92caf8a57e144a4b3feb9c0f1f586feea.tar.xz | |
Forgot to set a file position on characters being returned from
macro expansions.
[originally from svn r4489]
| -rw-r--r-- | input.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -103,6 +103,8 @@ static int get(input *in, filepos *pos, rdstringc *rsc) { } else if (in->stack) { wchar_t c = in->stack->text[in->stack->ptr]; + if (pos) + *pos = in->stack->pos; if (in->stack->text[++in->stack->ptr] == L'\0') { macrostack *tmp = in->stack; in->stack = tmp->next; |