1. 22 Dec, 2016 1 commit
  2. 04 Dec, 2016 1 commit
  3. 03 Dec, 2016 1 commit
  4. 02 Dec, 2016 1 commit
  5. 23 Oct, 2016 2 commits
  6. 10 Oct, 2016 1 commit
  7. 13 Sep, 2016 1 commit
  8. 29 Aug, 2016 2 commits
  9. 26 Aug, 2016 1 commit
  10. 07 Aug, 2016 1 commit
  11. 27 Jul, 2016 2 commits
  12. 24 Jun, 2016 2 commits
  13. 21 Jun, 2016 2 commits
  14. 20 Jun, 2016 1 commit
  15. 02 Jun, 2016 1 commit
  16. 01 Jun, 2016 2 commits
  17. 28 May, 2016 1 commit
  18. 27 May, 2016 1 commit
  19. 16 May, 2016 2 commits
  20. 12 May, 2016 1 commit
  21. 06 May, 2016 2 commits
  22. 04 May, 2016 2 commits
    • Benno Schulenberg's avatar
      spelling: don't partition the file for replacements in a marked region · 433c7e5d
      Benno Schulenberg authored
      Partitioning the file makes the undo system lose track, so that undoing
      things has a good chance of losing data.  Instead, just make sure that
      the region is marked "backwards", with current at the top and the mark
      at the bottom, and then let the replace loop take care of not going
      outside of the marked region.
      
      This also has the effect that if the marked region fits entirely on the
      screen, or all the misspellings are onscreen, then the screen will not
      be scrolled at all.  Which makes for a smooth experience.
      
      This fixes https://savannah.gnu.org/bugs/?47836,
      and fixes https://savannah.gnu.org/bugs/?45573.
      433c7e5d
    • 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
  23. 03 May, 2016 1 commit
  24. 02 May, 2016 1 commit
    • Benno Schulenberg's avatar
      search: elide an unneeded function · 05238f31
      Benno Schulenberg authored
      When we're spell checking, we don't need a special mechanism to detect
      we have come full circle: reaching the end-of-buffer means we're done.
      So don't bother to reset came_full_circle when we're spell checking
      (when begin == NULL) but simply ignore its value.
      05238f31
  25. 01 May, 2016 3 commits
  26. 25 Apr, 2016 2 commits
    • Benno Schulenberg's avatar
      screen: rename 'edit_refresh_needed' to 'refresh_needed' · 53f4a9f5
      Benno Schulenberg authored
      For a little contrast with the function edit_refresh() -- it's
      annoying that when you search for the latter you get to see all
      the settings of the flag too.
      53f4a9f5
    • Benno Schulenberg's avatar
      screen: don't always set 'edit_refresh_needed' when adjusting edittop · b97c36c2
      Benno Schulenberg authored
      The function edit_update() is called by edit_refresh() itself, so it is
      silly that the first sets 'edit_refresh_needed' to TRUE.  This setting
      is needed only in a few cases -- in the others it's not needed because
      the screen does not need to be refreshed (it was just about positioning
      the cursor), or 'edit_refresh_needed' has already been set by a call to
      goto_line_posx().  So, just set the flag in the five places that need it
      and spare the other four calls.
      b97c36c2
  27. 16 Apr, 2016 1 commit
  28. 11 Apr, 2016 1 commit
    • Benno Schulenberg's avatar
      screen: concentrate the setting of placewewant · aa1ae0a1
      Benno Schulenberg authored
      Instead of saving the current value of placewewant, then setting the
      new value, and then passing the old value to edit_redraw() in seven
      different places, just let edit_redraw() do this saving and setting.
      
      In the bargain placewewant is now only recalculated when it matters
      -- when allow_update is TRUE -- and not when it's superfluous.
      aa1ae0a1