1. 11 Apr, 2016 2 commits
    • Benno Schulenberg's avatar
      screen: avoid redrawing a line twice · 4b5b66a8
      Benno Schulenberg authored
      The old_current line needs to be redrawn only if it differs from current,
      and if it wasn't drawn already by the iteration for when the mark is on.
      
      Also make the conditions involving horizontal scrolling more precise.
      4b5b66a8
    • Benno Schulenberg's avatar
      screen: concentrate the setting of placewewant · aa1ae0a1
      Benno Schulenberg authored
      Instead of saving the current value of placewewant, then setting the
      new value, and then passing the old value to edit_redraw() in seven
      different places, just let edit_redraw() do this saving and setting.
      
      In the bargain placewewant is now only recalculated when it matters
      -- when allow_update is TRUE -- and not when it's superfluous.
      aa1ae0a1
  2. 10 Apr, 2016 4 commits
  3. 08 Apr, 2016 1 commit
    • Benno Schulenberg's avatar
      searching: don't keep track of current_y, but calculate it at the end · 7ba356a6
      Benno Schulenberg authored
      Stop keeping track of the vertical screen position when searching for
      something.  If nothing is found, current_y doesn't change, and all the
      incrementing/decrementing was a waste of time.  If something is found
      and it is onscreen, it is easy to calculate the new current_y.  And if
      something is found and it is offscreen, then current_y is irrelevant,
      because we will be either centering the found occurrence (searching)
      or putting it on the top or bottom line (bracket matching).
      
      (The above does not take softwrapping into account, but neither did
      the old code, so this doesn't introduce any new bugs.)
      
      (Also, when the search wraps, and the viewport is away from head or
      tail of the file, and the found occurrence is within the viewport,
      then the incremented/decremented current_y would be way wrong, but
      this didn't have any adverse effects as far as I could tell.  It
      seems that current_y is irrelevant in most cases.)
      7ba356a6
  4. 07 Apr, 2016 1 commit
  5. 05 Apr, 2016 8 commits
  6. 04 Apr, 2016 7 commits
  7. 31 Mar, 2016 2 commits
  8. 30 Mar, 2016 5 commits
  9. 29 Mar, 2016 6 commits
  10. 28 Mar, 2016 4 commits