From 3bd7b59b2c8f999f39600ab640856342f6436d7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Gia=20Phong?= Date: Sat, 7 Dec 2019 09:37:59 +0700 Subject: [PATCH] [mdir] Remove trailing semicolon --- Changes.md | 6 ++++++ widgets/mdir_all.lua | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Changes.md b/Changes.md index c35b185..59ba1e0 100644 --- a/Changes.md +++ b/Changes.md @@ -1,3 +1,9 @@ +# Changes in 2.4.1 (WIP) + +Fixed: + +- [mdir] Remove trailing semicolon at the end of command + # Changes in 2.4.0 IMPORTANT: diff --git a/widgets/mdir_all.lua b/widgets/mdir_all.lua index cc4d035..a57cf16 100644 --- a/widgets/mdir_all.lua +++ b/widgets/mdir_all.lua @@ -40,11 +40,11 @@ function mdir_all.async(format, warg, callback) local new, cur = 0, 0 spawn.with_line_callback( - "find" .. starting_points .. " -type f -regex '.*/cur/.*2,[^S]*$';", + "find" .. starting_points .. " -type f -regex '.*/cur/.*2,[^S]*$'", { stdout = function (filename) cur = cur + 1 end, output_done = function () spawn.with_line_callback( - "find" .. starting_points .. " -type f -path '*/new/*';", + "find" .. starting_points .. " -type f -path '*/new/*'", { stdout = function (filename) new = new + 1 end, output_done = function () callback{ new, cur } end }) end })