From afdbb05bc51c4ad2c277e6cfd08e8e7c2ef4d0be Mon Sep 17 00:00:00 2001 From: Adrien Waksberg Date: Mon, 20 Feb 2017 22:26:57 +0100 Subject: [PATCH] fix nothing item message in copy mode --- lib/mpw/cli.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/mpw/cli.rb b/lib/mpw/cli.rb index 99f79e3..331b250 100644 --- a/lib/mpw/cli.rb +++ b/lib/mpw/cli.rb @@ -247,7 +247,6 @@ class Cli if result.length == 0 puts I18n.t('display.nothing') - else table(result) end @@ -494,7 +493,7 @@ class Cli items = @mpw.list(options) if items.length == 0 - puts "#{I18n.t('display.warning')}: #{I18n.t('warning.select')}".yellow + puts I18n.t('display.nothing') else table(items)