1. 06 Aug, 2017 3 commits
  2. 23 Jul, 2017 1 commit
    • David Lawrence Ramsey's avatar
      tweaks: set the target row for smooth scrolling more directly · 6f9bb53b
      David Lawrence Ramsey authored
      The function place_the_cursor() assumes that the viewport is up to date,
      i.e., that current is in range of edittop.  When uncutting or inserting,
      however, place_the_cursor() gets called on the out-of-date viewport
      first, and then a screen refresh is scheduled (which would put the
      viewport up to date).  This is backwards: the refresh should come before
      the cursor placement, and the only reason it works anyway is because the
      cap on the number of chunks to move backward papers over the problem by
      keeping current_y in screen range regardless.
      
      Fix this properly by simply setting current_y to the bottom row of the
      screen instead of calling place_the_cursor().  This value of current_y
      is only ever used when in smooth scrolling mode and the insertion (or
      paste) pushed the cursor offscreen.  In other situations, this value is
      overridden when place_the_cursor() gets called after a screen refresh.
      
      After that fix, the cap on the number of chunks to move backward is no
      longer needed.
      6f9bb53b
  3. 17 Jul, 2017 2 commits
  4. 13 Jul, 2017 1 commit
  5. 11 Jul, 2017 2 commits
  6. 09 Jul, 2017 1 commit
  7. 07 Jul, 2017 1 commit
    • David Lawrence Ramsey's avatar
      softwrap: add new functions for chunks of varying width · e375995d
      David Lawrence Ramsey authored
      get_chunk_row() replaces the formula "column / editwincols".
      
      get_chunk_leftedge() replaces "(column / editwincols) * editwincols".
      
      get_last_chunk_row() replaces "strlenpt() / editwincols".
      
      get_last_chunk_leftedge() replaces "(strlenpt() / editwincols) * editwincols".
      
      This prepares us for any changes in those formulas, and for more such
      functions later.
      e375995d
  8. 02 Jul, 2017 1 commit
  9. 29 Jun, 2017 1 commit
  10. 17 May, 2017 1 commit
  11. 16 May, 2017 2 commits
  12. 11 May, 2017 1 commit
  13. 09 May, 2017 1 commit
  14. 08 May, 2017 3 commits
  15. 07 May, 2017 1 commit
  16. 01 May, 2017 2 commits
  17. 30 Apr, 2017 1 commit
  18. 25 Apr, 2017 2 commits
  19. 19 Apr, 2017 3 commits
  20. 17 Apr, 2017 1 commit
  21. 09 Apr, 2017 1 commit
    • Benno Schulenberg's avatar
      copyright: update the years, use ranges, and explain this usage · 754c62c5
      Benno Schulenberg authored
      The interval 2013-2017 for the Free Software Foundation is valid
      because in those years there were releases with changes by either
      Chris or David, and the GNU maintainers guide advises to mention
      a new year in all files of a package, not just in the ones that
      actually changed, and be done with it for the rest of the year.
      754c62c5
  22. 04 Apr, 2017 4 commits
  23. 24 Mar, 2017 1 commit
  24. 23 Mar, 2017 2 commits
  25. 22 Mar, 2017 1 commit
    • David Lawrence Ramsey's avatar
      softwrap: prepare for a more flexible viewport · 4144f76e
      David Lawrence Ramsey authored
      We want to be able to scroll the line at edittop partially off the
      screen.  For this to be possible, the new variable firstcolumn stores
      the starting column of the viewport -- the starting column in the line
      that edittop points to.
      
      Since firstcolumn is used by go_back_chunks() and go_forward_chunks(),
      it can't be completely #ifdefed out when NANO_TINY is set, but outside
      of softwrap mode it should always be zero.
      
      Currently firstcolumn is initialized to zero, reset to zero when
      toggling softwrap mode off, and reset to zero when switching buffers
      while softwrap mode is off.  It's otherwise unused, but its uses are
      forthcoming.
      4144f76e