Fix current-line checking in appropriate-adjustement (fixes #16)