• David Lawrence Ramsey's avatar
    replacing: make spotlight() account for varying chunk width · aa04ad4f
    David Lawrence Ramsey authored
    spotlight() now displays softwrapped lines chunk by chunk instead of all
    at once.  Since softwrapped lines are no longer of constant width, the
    latter approach would fail if softwrapping breaks the spotlighted text.
    
    Instead of taking a string, spotlight() now takes the starting and ending
    columns of that string.  Also, its handling of softwrapped lines is now
    split off into a separate function, spotlight_softwrapped().
    aa04ad4f
search.c 37.3 KB