diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2021-10-08 20:37:56 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2021-10-08 22:11:33 +0200 |
commit | 50d63f205d86d554891b327a752bcf0a27b8bc0f (patch) | |
tree | 06ee211af74e4ab77eecfb5efe30799f12e58339 /src/view.c | |
parent | b6719eb383828e1cf04f4039edb0e4d8ba8a3587 (diff) | |
download | sciteco-50d63f205d86d554891b327a752bcf0a27b8bc0f.tar.gz |
fixed hiding savepoint files on Win32
* This was an ancient bug apparently broken since d503c3b07c2157658f699294c44ad5be244727a5 (year 2014)
and was therefore broken even in v0.6.4.
Diffstat (limited to 'src/view.c')
-rw-r--r-- | src/view.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -290,7 +290,8 @@ teco_undo_restore_savepoint_push(gchar *savepoint, const gchar *filename) strcpy(ctx->filename, filename); #ifdef G_OS_WIN32 - ctx->orig_attrs = teco_file_get_attributes(filename); + /* NOTE: `filename` might no longer exist on disk */ + ctx->orig_attrs = teco_file_get_attributes(savepoint); if (ctx->orig_attrs != TECO_FILE_INVALID_ATTRIBUTES) teco_file_set_attributes(savepoint, ctx->orig_attrs | FILE_ATTRIBUTE_HIDDEN); |