1. 13 Aug, 2017 1 commit
    • Benno Schulenberg's avatar
      files: do not silently ignore an invalid backup directory, but die · 751e7f0f
      Benno Schulenberg authored
      It would be horrible if the user expects to find numbered backups
      of all the files that were changed but they are NOT there because
      the config file contains a typo or the relevant directory was moved
      or renamed or something.  So... if the specified backup directory
      is not usable, nano should complain and simply not start up.
      751e7f0f
  2. 06 Aug, 2017 5 commits
  3. 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
  4. 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
  5. 14 Jul, 2017 2 commits
  6. 13 Jul, 2017 1 commit
  7. 09 Jul, 2017 2 commits
  8. 07 Jul, 2017 3 commits
  9. 02 Jul, 2017 1 commit
  10. 30 Jun, 2017 2 commits
  11. 23 Jun, 2017 6 commits
  12. 22 Jun, 2017 1 commit
  13. 20 Jun, 2017 1 commit
  14. 18 Jun, 2017 5 commits
  15. 08 Jun, 2017 1 commit
  16. 07 Jun, 2017 1 commit
  17. 06 Jun, 2017 1 commit
  18. 02 Jun, 2017 1 commit
    • Benno Schulenberg's avatar
      display: don't let a SIGCONT write anything to the screen · 84ff9ebb
      Benno Schulenberg authored
      The old praxis of calling total_refresh() upon a SIGCONT was confusing,
      because the screen would look as if nano had returned from suspension,
      but in fact the shell was still active.
      
      Instead of calling total_refresh(), put a no-op key into ncurses' buffer,
      so that, when nano actually does return out of suspension (through 'fg'),
      this key will be read and discarded, upon which nano will go sit and wait
      for the next key, just before which it calls doupdate().  The latter is
      all we need to get the entire screen restored.
      
      This also fixes https://savannah.gnu.org/bugs/?51131 for "tiny".
      84ff9ebb
  19. 31 May, 2017 1 commit
  20. 24 May, 2017 2 commits
  21. 18 May, 2017 1 commit