fix #720 - n and N take into account the last search command's direction