1. 22 Mar, 2017 3 commits
    • David Lawrence Ramsey's avatar
      softwrap: count softwrapped chunks properly in do_uncut_text() · 4f9c563e
      David Lawrence Ramsey authored
      Add the new function less_than_a_screenful() to accomplish this.
      It uses go_back_chunks() to count the number of softwrapped chunks
      between the end point and the starting point of the paste.
      
      Now softwrap mode and non-softwrap mode behave the same way when
      uncutting fewer than editwinrows rows of text.  Accordingly, remove
      the call to ensure_line_is_visible(), as it no longer applies.
      4f9c563e
    • David Lawrence Ramsey's avatar
      softwrap: count softwrapped chunks properly in do_gotolinecolumn() · 1570651e
      David Lawrence Ramsey authored
      Use go_forward_chunks() to count softwrapped chunks between the current
      cursor position and the bottom of the file.  Now softwrap mode and
      non-softwrap mode behave the same way when moving to a line and column
      non-interactively, instead of the former's always centering the screen.
      1570651e
    • David Lawrence Ramsey's avatar
      softwrap: add two chunk-iterator functions · 456d66b9
      David Lawrence Ramsey authored
      These functions, go_back_chunks() and go_forward_chunks(), take a number
      of softwrapped chunks (screen rows) to move, a pointer to a buffer, and
      a location (specifically, a starting column of a softwrapped chunk).  If
      they move successfully, they will update the buffer pointer and location
      to point to the beginning of the softwrapped chunk they moved to.
      
      Since non-softwrap mode is effectively just a subset of softwrap mode
      in which every line takes up one chunk, these functions also work in
      non-softwrap mode.  In this case, their starting column will always be
      zero, as it would be in softwrap mode on a line that takes up one chunk.
      
      Nothing uses these functions yet, but that is forthcoming.
      456d66b9
  2. 20 Mar, 2017 3 commits
  3. 16 Mar, 2017 1 commit
  4. 14 Mar, 2017 1 commit
  5. 08 Mar, 2017 1 commit
  6. 06 Mar, 2017 14 commits
  7. 01 Mar, 2017 3 commits
  8. 28 Feb, 2017 12 commits
  9. 27 Feb, 2017 2 commits