Fix warnings on previous-line and goto-line.