1. 13 Jul, 2017 1 commit
  2. 11 Jul, 2017 2 commits
  3. 09 Jul, 2017 1 commit
  4. 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
  5. 02 Jul, 2017 1 commit
  6. 29 Jun, 2017 1 commit
  7. 17 May, 2017 1 commit
  8. 16 May, 2017 2 commits
  9. 11 May, 2017 1 commit
  10. 09 May, 2017 1 commit
  11. 08 May, 2017 3 commits
  12. 07 May, 2017 1 commit
  13. 01 May, 2017 2 commits
  14. 30 Apr, 2017 1 commit
  15. 25 Apr, 2017 2 commits
  16. 19 Apr, 2017 3 commits
  17. 17 Apr, 2017 1 commit
  18. 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
  19. 04 Apr, 2017 4 commits
  20. 24 Mar, 2017 1 commit
  21. 23 Mar, 2017 2 commits
  22. 22 Mar, 2017 3 commits
    • 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
    • David Lawrence Ramsey's avatar
      weeding: remove ensure_line_is_visible() · 80b3a301
      David Lawrence Ramsey authored
      Since all lines can be partially scrolled off the screen now
      (except for the top line of the edit window, which is forthcoming),
      ensure_line_is_visible() is no longer needed.
      80b3a301
    • David Lawrence Ramsey's avatar
      softwrap: count softwrapped chunks properly in read_file() · fd82989e
      David Lawrence Ramsey authored
      Use less_than_a_screenful() again, just as in do_uncut_text().
      fd82989e
  23. 20 Mar, 2017 1 commit
  24. 06 Mar, 2017 1 commit
  25. 28 Feb, 2017 2 commits
    • David Lawrence Ramsey's avatar
      speller: fix replacing marked text in the alternate spell checker · 234bd9c9
      David Lawrence Ramsey authored
      With read_file() revamped, it now uses partition_filestruct() indirectly
      via ingraft_buffer(), so we can't use partition_filestruct() to replace
      marked text in the alternate spell checker anymore without segfaulting.
      
      Add the new function replace_marked_buffer() to accomplish this instead.
      Based on replace_buffer(), it uses extract_buffer() to throw away the
      marked un-spell-checked text, and then uses read_file() to insert the
      spell-checked text at the position where the mark was.
      
      Accordingly, remove unneeded partitioning and related stuff from
      do_alt_speller().  Besides pasting the file into the buffer at
      current[current_x], ingraft_buffer() also deals with renumbering,
      updating totsize, and handling a magicline, so do_alt_speller()
      doesn't need to do those anymore.
      234bd9c9
    • David Lawrence Ramsey's avatar
      weeding: remove partitioning and related stuff from do_insertfile() · ef43ebfe
      David Lawrence Ramsey authored
      With read_file() revamped to handle inserting a file at the current
      position, partitioning the buffer is no longer needed.
      ef43ebfe