1. 21 May, 2016 1 commit
  2. 18 May, 2016 1 commit
  3. 16 May, 2016 2 commits
  4. 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
  5. 01 May, 2016 1 commit
  6. 25 Apr, 2016 3 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
    • Benno Schulenberg's avatar
      scrolling: catch the special case of reading a file from standard input · 907ba3a2
      Benno Schulenberg authored
      Since commit dac0aa1d, nano would leave edittop at current after reading
      data from standard input, meaning that everything that had been read in
      was invisible, "scrolled off" the top of the screen.  Correct this by
      explicitly setting edittop.
      
      The above does not happen for ^R (^X) because it has a special mechanism
      to save and restore edittop.  Nor does it happen for ^R ^X M-F because it
      sets current to the top of the file and refreshing the screen will make
      edittop follow, or -- in case just one unterminated line was read in --
      edittop will already be equal to current.
      907ba3a2
  7. 17 Apr, 2016 1 commit
  8. 12 Apr, 2016 1 commit
  9. 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
  10. 07 Apr, 2016 1 commit
  11. 05 Apr, 2016 1 commit
  12. 29 Mar, 2016 1 commit
  13. 28 Mar, 2016 1 commit
  14. 22 Mar, 2016 1 commit
  15. 20 Mar, 2016 1 commit
  16. 25 Feb, 2016 1 commit
  17. 23 Feb, 2016 2 commits
  18. 22 Feb, 2016 1 commit
  19. 18 Feb, 2016 1 commit
  20. 13 Feb, 2016 1 commit
  21. 10 Feb, 2016 1 commit
  22. 06 Feb, 2016 3 commits
  23. 29 Jan, 2016 2 commits
  24. 21 Jan, 2016 1 commit
  25. 15 Jan, 2016 1 commit
  26. 10 Jan, 2016 1 commit
  27. 04 Jan, 2016 2 commits
  28. 03 Jan, 2016 5 commits