1. 07 Jul, 2017 7 commits
    • Benno Schulenberg's avatar
      8766e7bd
    • David Lawrence Ramsey's avatar
      new feature: allow lines to be softwrapped at whitespace · bb4d0d54
      David Lawrence Ramsey authored
      Extend get_softwrap_breakpoint() to break softwrapped lines on
      whitespace when a flag is set.  This flag is controlled by the new
      rcfile option "atblanks".  The '>' characters marking two-column
      characters at the edge of the screen are disabled when it's on.
      
      If get_softwrap_breakpoint() can't find whitespace in screen range, it
      will break the line on the screen edge.  (In this case, a blank can be
      on the last column of the screen, but text can't, so that a blank on the
      last column doesn't become invisible and possibly break the display.)
      
      This fulfills https://savannah.gnu.org/bugs/index.php?49959
      
      .
      Requested-by: default avatarNicholas Boel <axxisd@gmail.com>
      bb4d0d54
    • 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
    • David Lawrence Ramsey's avatar
      softwrap: in do_mouse(), keep the cursor before a softwrap breakpoint · 4d7735c8
      David Lawrence Ramsey authored
      Add the new function actual_last_column() to accomplish this.
      4d7735c8
    • David Lawrence Ramsey's avatar
      softwrap: make the changes to actually allow the chunk width to vary · 8490f4ac
      David Lawrence Ramsey authored
      get_chunk_row() and get_chunk_leftedge() now become wrappers around
      get_chunk(); the latter is only used directly in place_the_cursor()
      when we need to get both the row and the leftedge.  get_chunk() now
      uses the proper formula to implement varying chunk width.
      
      Since chunk width now varies, place_the_cursor() sets the x position
      relative to the leftedge in a different way that works regardless
      of chunk width, update_softwrapped_line() loops until it gets all
      softwrap breakpoints instead of calculating the full length in
      advance and getting one full row at a time, the chunk iterators
      now count leftedges instead of rows, and fix_firstcolumn() does a
      full recalculation of the chunk that firstcolumn is on instead of
      simply shifting it back.
      
      Also, in update_softwrapped_line(), when a line's softwrap breakpoint
      is before the last column of the edit window, a ">" is now added to
      the end of it.
      
      The workaround in place_the_cursor() for when tw...
      8490f4ac
    • 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
    • David Lawrence Ramsey's avatar
      softwrap: prepare for allowing the chunk width to vary · 35f6a176
      David Lawrence Ramsey authored
      The new function find_softwrap_breakpoint() returns the column number
      of the last position in screen range where we can wrap the given text
      without breaking a two-column character in half (as was done until now).
      The returned column number is the leftedge of the next softwrapped chunk.
      
      If the end of the text is reached while searching for a wrapping point,
      the parameter end_of_line is set to TRUE.
      
      The new function get_chunk() uses find_softwrap_breakpoint() to find the
      row and leftedge corresponding to a given column of a given line.
      35f6a176
  2. 02 Jul, 2017 2 commits
  3. 30 Jun, 2017 1 commit
  4. 04 Jun, 2017 3 commits
  5. 31 May, 2017 3 commits
  6. 29 May, 2017 3 commits
  7. 19 May, 2017 1 commit
  8. 16 May, 2017 1 commit
  9. 11 May, 2017 1 commit
  10. 08 May, 2017 1 commit
  11. 07 May, 2017 1 commit
  12. 05 May, 2017 2 commits
  13. 01 May, 2017 2 commits
  14. 30 Apr, 2017 1 commit
  15. 28 Apr, 2017 3 commits
  16. 25 Apr, 2017 5 commits
  17. 24 Apr, 2017 1 commit
  18. 19 Apr, 2017 1 commit
  19. 17 Apr, 2017 1 commit