Fix an unecessary files listing when restoring buffers

This commit is contained in:
Frank LENORMAND 2015-08-05 15:09:27 +03:00 committed by Maxime Coste
parent 7ef56789fa
commit e29f8d3261

View File

@ -45,7 +45,7 @@ def autorestore-purge-backups -docstring "Remove all the backups of the current
buffer_basename="${kak_bufname##*/}"
buffer_dirname=$(dirname "${kak_bufname}")
find "${buffer_dirname}" -type f -readable -name "\.${buffer_basename}\.kak\.*" -delete 2>/dev/null
find "${buffer_dirname}" -maxdepth 1 -type f -readable -name "\.${buffer_basename}\.kak\.*" -delete 2>/dev/null
}
echo -color 'Information Backup files removed'
}