1. 19 Apr, 2017 1 commit
  2. 17 Apr, 2017 1 commit
  3. 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
  4. 22 Mar, 2017 2 commits
    • David Lawrence Ramsey's avatar
      softwrap: save and restore firstcolumn when copying text · 6f0ed207
      David Lawrence Ramsey authored
      Copying text involves first cutting it and then quickly pasting it back.
      However, cutting the text may change firstcolumn if the mark is offscreen.
      To keep the viewport unchanged, copy_text() has to save and restore not
      just edittop, but firstcolumn as well.
      6f0ed207
    • 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
  5. 17 Feb, 2017 1 commit
  6. 13 Feb, 2017 1 commit
  7. 05 Feb, 2017 1 commit
  8. 09 Jan, 2017 3 commits
  9. 08 Jan, 2017 3 commits
    • David Lawrence Ramsey's avatar
      weeding: remove another unnecessary setting of openfile->current_y · d35ecd02
      David Lawrence Ramsey authored
      The setting of current_y in copy_from_filestruct() also appears to be
      a holdover from the days of a more-common STATIONARY scrolling mode.
      
      do_cut_text() uses the above function when copying text (uncutting
      text again right after cutting it).  Since the text is effectively
      the same afterward, current_y doesn't need to change.
      
      do_uncut_text(), however, does need current_y up to date in one case:
      when uncutting a full screen or less' worth of lines, focusing will be
      FALSE, and it uses edit_refresh(), so it will use STATIONARY scrolling
      mode then.  Take a cue from do_insertfile() and call reset_cursor() to
      get an updated current_y.
      
      (Note that the check for a full screen or less' worth of lines uses
      incorrect values when in softwrap mode, but that's a separate problem.)
      
      undo_cut(), do_redo(), and backup_lines() do not need set current_y
      because they all result in edit_refresh() with focusing = TRUE, so
      they do a CENTERING scroll which does not need current_y.
      d35ecd02
    • Benno Schulenberg's avatar
      61bc2485
    • David Lawrence Ramsey's avatar
      c38f571d
  10. 31 Dec, 2016 3 commits
  11. 27 Oct, 2016 1 commit
  12. 29 Aug, 2016 2 commits
  13. 04 May, 2016 1 commit
    • Benno Schulenberg's avatar
      scrolling: center the cursor when inserted stuff does not fit on screen · 318ed6b1
      Benno Schulenberg authored
      Since nano-2.4.1, reading in or pasting a large piece of text would put
      the cursor on the bottom line, leaving only one line of the non-read or
      non-pasted text visible.  This is different from the centering behavior
      of Pico, and somewhat disorienting, as you can't see "where you are" any
      more in relation to the file as it was.
      
      So now center the cursor whenever the read or pasted text is larger than
      the screen, but don't center it when the text fits entirely on the screen.
      (The latter avoids the effect of the screen jumping unnecessarily when
      inserting just a few lines while the cursor is near the bottom.)
      
      To achieve this behavior: default to focusing, and temporarily set it to
      FALSE when the focusing effect is unwanted.
      
      This fixes https://savannah.gnu.org/bugs/?47841.
      318ed6b1
  14. 25 Apr, 2016 1 commit
  15. 05 Apr, 2016 1 commit
  16. 23 Feb, 2016 1 commit
  17. 18 Feb, 2016 1 commit
  18. 06 Feb, 2016 1 commit
  19. 13 Jan, 2016 1 commit
  20. 06 Nov, 2015 1 commit
  21. 02 Nov, 2015 1 commit
  22. 03 Feb, 2015 1 commit
  23. 30 Jun, 2014 1 commit
  24. 18 Jun, 2014 1 commit
  25. 26 May, 2014 1 commit
  26. 25 May, 2014 1 commit
  27. 16 May, 2014 1 commit
  28. 15 May, 2014 1 commit
  29. 30 Apr, 2014 1 commit
  30. 14 Apr, 2014 2 commits
  31. 04 Apr, 2014 1 commit