diff options
Diffstat (limited to 'src/LYHistory.c')
-rw-r--r-- | src/LYHistory.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/LYHistory.c b/src/LYHistory.c index 142703dd..9f815d2f 100644 --- a/src/LYHistory.c +++ b/src/LYHistory.c @@ -174,8 +174,8 @@ PUBLIC void LYpush ARGS2( if (history[nhist-1].internal_link == doc->internal_link) { /* But it is nice to have the last position remembered! - kw */ - history[nhist].link = doc->link; - history[nhist].page = doc->line; + history[nhist-1].link = doc->link; + history[nhist-1].page = doc->line; return; } } |