1. 25 Apr, 2017 1 commit
  2. 19 Apr, 2017 3 commits
  3. 17 Apr, 2017 1 commit
  4. 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
  5. 04 Apr, 2017 4 commits
  6. 24 Mar, 2017 1 commit
  7. 23 Mar, 2017 2 commits
  8. 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
  9. 20 Mar, 2017 1 commit
  10. 06 Mar, 2017 1 commit
  11. 28 Feb, 2017 3 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
    • David Lawrence Ramsey's avatar
      files: revamp the insertion of a file, to be more like pasting text · 86f7bc18
      David Lawrence Ramsey authored
      Move buffer handling and '\r' stripping from read_line() to read_file(),
      so that the file gets its format determined and gets stored in its own
      buffer entirely in one function.  Then use ingraft_buffer() to insert
      this new buffer into the current one.
      
      In addition to pasting the file at current[current_x], ingraft_buffer()
      also deals with renumbering, the updating of totsize, and the handling
      of a magicline, so read_file() doesn't need to do those anymore.
      
      Note that all this makes read_file() depend on the position of
      current[current_x] to know where to insert the file.  Accordingly,
      set current_x to zero in initialize_buffer_text() instead of in
      make_new_buffer(), so that replace_buffer() keeps working properly.
      86f7bc18
  12. 24 Feb, 2017 1 commit
  13. 17 Feb, 2017 2 commits
  14. 19 Jan, 2017 1 commit
  15. 09 Jan, 2017 2 commits
  16. 06 Jan, 2017 2 commits
  17. 03 Jan, 2017 1 commit
  18. 01 Jan, 2017 2 commits
  19. 28 Dec, 2016 1 commit
  20. 26 Dec, 2016 3 commits
  21. 23 Dec, 2016 4 commits