1. 06 Aug, 2017 2 commits
  2. 03 Aug, 2017 1 commit
  3. 31 Jul, 2017 1 commit
  4. 29 Jul, 2017 2 commits
  5. 27 Jul, 2017 4 commits
  6. 26 Jul, 2017 1 commit
  7. 25 Jul, 2017 1 commit
  8. 24 Jul, 2017 1 commit
    • David Lawrence Ramsey's avatar
      weeding: drop the forreal parameter from place_the_cursor() · 381a386b
      David Lawrence Ramsey authored
      Commit 28beb3f9 added the 'forreal' parameter to prevent spotlight() from
      placing the cursor wrongly due to an invalid placewewant.  However, since
      the variable-width softwrap overhaul (specifically, since commit 8490f4ac),
      place_the_cursor() no longer checks placewewant, so the parameter is no
      longer needed.
      
      Furthermore, dropping 'forreal' and thus always setting current_y won't
      affect the operation of spotlight(), since the only functions that use
      spotlight() (do_replace_loop() and do_int_spell_fix()) both call
      edit_refresh() beforehand, which means that current_y will already
      have been set to the value it will be set to again.
      381a386b
  9. 23 Jul, 2017 1 commit
    • David Lawrence Ramsey's avatar
      tweaks: set the target row for smooth scrolling more directly · 6f9bb53b
      David Lawrence Ramsey authored
      The function place_the_cursor() assumes that the viewport is up to date,
      i.e., that current is in range of edittop.  When uncutting or inserting,
      however, place_the_cursor() gets called on the out-of-date viewport
      first, and then a screen refresh is scheduled (which would put the
      viewport up to date).  This is backwards: the refresh should come before
      the cursor placement, and the only reason it works anyway is because the
      cap on the number of chunks to move backward papers over the problem by
      keeping current_y in screen range regardless.
      
      Fix this properly by simply setting current_y to the bottom row of the
      screen instead of calling place_the_cursor().  This value of current_y
      is only ever used when in smooth scrolling mode and the insertion (or
      paste) pushed the cursor offscreen.  In other situations, this value is
      overridden when place_the_cursor() gets called after a screen refresh.
      
      After that fix, the cap on the number of chunks to move backward is no
      longer needed.
      6f9bb53b
  10. 21 Jul, 2017 2 commits
  11. 20 Jul, 2017 2 commits
  12. 19 Jul, 2017 2 commits
  13. 18 Jul, 2017 1 commit
  14. 17 Jul, 2017 3 commits
  15. 16 Jul, 2017 1 commit
    • Benno Schulenberg's avatar
      suspension: prevent entering an invalid byte upon resume (with S-Lang) · 43a5c876
      Benno Schulenberg authored
      For some reason, when returning from suspension, SLang will produce
      either a clipped error code (0xFF instead of 0xFFFF, when returning
      from an externally induced suspension), or it will clip the code of
      first subsequent keystroke to a single byte (when returning from a
      normal, in-editor suspension: ^Z).
      
      Side-step this by ignoring the clipped error code, and by using an
      undefined control code as the first fake keystroke.  Ignoring the
      clipped error code is not possible when using a single-byte locale,
      otherwise the user would not be able to type the character with
      code 0xFF (although it could still be entered with Esc Esc 255).
      
      This fixes https://savannah.gnu.org/bugs/?51477.
      43a5c876
  16. 15 Jul, 2017 2 commits
  17. 14 Jul, 2017 8 commits
  18. 13 Jul, 2017 5 commits