From e29f8d32612d64a043f028a1db9eee579b1ea13c Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Wed, 5 Aug 2015 15:09:27 +0300 Subject: [PATCH] Fix an unecessary files listing when restoring buffers --- rc/autorestore.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/autorestore.kak b/rc/autorestore.kak index 16b54973..daa989f2 100644 --- a/rc/autorestore.kak +++ b/rc/autorestore.kak @@ -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' }