Skip to content

Commit

Permalink
Fix history.pointer reset
Browse files Browse the repository at this point in the history
  • Loading branch information
nocd5 committed Nov 18, 2014
1 parent 4c34899 commit 458c1f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 0 additions & 5 deletions history/history.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,6 @@ func Replace(line string) (string, bool) {
buffer.WriteRune(ch)
}
}

if isReplaced {
ResetPointer()
}

return buffer.String(), isReplaced
}

Expand Down
2 changes: 2 additions & 0 deletions nyagos.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ func main() {
fmt.Fprintln(fd, line)
fd.Close()
}
} else {
history.ResetPointer()
}

stackPos := L.GetTop()
Expand Down

0 comments on commit 458c1f5

Please sign in to comment.