simon-git: tweak (master): Simon Tatham

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Wed Feb 5 21:25:18 GMT 2020


TL;DR:
  a1cacbe Stop trying to save in look mode.
  e9c06a7 Make save-and-exit abort if save fails.

Repository:     https://git.tartarus.org/simon/tweak.git
On the web:     https://git.tartarus.org/?p=simon/tweak.git
Branch updated: master
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2020-02-05 21:25:18

commit a1cacbeb1ef7456b7fa5f1ee7754813881d71f41
web diff https://git.tartarus.org/?p=simon/tweak.git;a=commitdiff;h=a1cacbeb1ef7456b7fa5f1ee7754813881d71f41;hp=da9682a811fdb1755bdd345636146f392fb2e2da
Author: Simon Tatham <anakin at pobox.com>
Date:   Wed Feb 5 21:22:14 2020 +0000

    Stop trying to save in look mode.
    
    The 'save' and 'exit-and-save' actions both ought to do absolutely
    nothing if we're in look mode. But in fact, 'save' was still renaming
    the file to its backup name before noticing that something was wrong!

 actions.c | 5 +++++
 1 file changed, 5 insertions(+)

commit e9c06a706d2e5ebc40f78be60c430a3cd9b5edd2
web diff https://git.tartarus.org/?p=simon/tweak.git;a=commitdiff;h=e9c06a706d2e5ebc40f78be60c430a3cd9b5edd2;hp=a1cacbeb1ef7456b7fa5f1ee7754813881d71f41
Author: Simon Tatham <anakin at pobox.com>
Date:   Wed Feb 5 21:24:09 2020 +0000

    Make save-and-exit abort if save fails.
    
    The save-and-exit action isn't normally bound to a key, but you can
    bind it if you want it. It calls act_save() as a subroutine - but it
    didn't bother to check whether act_save had actually managed to save
    the file. In the case where it didn't, you probably didn't want to
    exit anyway and lose all your changes! Now the whole save-and-exit
    action aborts if the initial save fails.

 actions.c | 20 +++++++++++++-------
 1 file changed, 13 insertions(+), 7 deletions(-)



More information about the tartarus-commits mailing list