diff options
author | streetturtle <streetturtle@gmail.com> | 2020-04-30 10:07:50 -0400 |
---|---|---|
committer | streetturtle <streetturtle@gmail.com> | 2020-04-30 10:07:50 -0400 |
commit | fc0ebb634bf56392d5e6c8c162a7bfe8b5451ffd (patch) | |
tree | 350360e05a68a82e536f19c8f18bf9bd8e70870e /translate-widget | |
parent | e9131c266bf2ffedfa0e272afd1b365863374a55 (diff) |
few small improvements
Diffstat (limited to 'translate-widget')
-rw-r--r-- | translate-widget/translate.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/translate-widget/translate.lua b/translate-widget/translate.lua index ae538c8..b333e74 100644 --- a/translate-widget/translate.lua +++ b/translate-widget/translate.lua @@ -3,7 +3,7 @@ -- https://tech.yandex.com/translate/ -- @author Pavel Makhov --- @copyright 2018 Pavel Makhov +-- @copyright 2020 Pavel Makhov ------------------------------------------------- local awful = require("awful") @@ -25,7 +25,7 @@ local ICON = '/usr/share/icons/Papirus-Dark/48x48/apps/gnome-translate.svg' local function extract(input_string) local word, lang = input_string:match('^(.+)%s(%a%a%a%a)$') - if word ~= nill and lang ~= nill then + if word ~= nil and lang ~= nil then lang = lang:sub(1, 2) .. '-' .. lang:sub(3) end return word, lang @@ -145,7 +145,6 @@ local input_widget = wibox { expand = true, bg = '#1e252c', max_widget_size = 500, - border_width = 1; border_width = 1, border_color = '#66ccff', shape = function(cr, width, height) |