• Benno Schulenberg's avatar
    search: don't set placewewant when we are just iterating · ea4e9b31
    Benno Schulenberg authored
    In the innermost search loop, don't set placewewant, because this loop
    is also used for replacing and spell fixing, when we don't really want
    to be there: we are just passing through.  Not setting placewewant means
    we don't need to save and restore it in those passing-through routines.
    
    The value of placewewant is only relevant when doing cursor movement,
    which doesn't happen during replacing nor spell checking, so there is
    no need to keep placewewant up to date -- it is set when it matters:
    at the end of go_looking().
    ea4e9b31
search.c 36.7 KB