aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Dewar <seandewar@users.noreply.github.com>2023-01-16 10:37:14 +0000
committerSean Dewar <seandewar@users.noreply.github.com>2023-01-16 14:26:29 +0000
commit60df0c06510cc65d68a2693722577d437264f67d (patch)
tree2ceafcfd9ea2c3d977fddfaec5d0c1d69868a006
parentef89f9fd46ab591183b7f59f31f5a2e55f7a526b (diff)
downloadrneovim-60df0c06510cc65d68a2693722577d437264f67d.tar.gz
rneovim-60df0c06510cc65d68a2693722577d437264f67d.tar.bz2
rneovim-60df0c06510cc65d68a2693722577d437264f67d.zip
fix(health): fix `tmux_esc_time` comparison
Regression from the health.vim to .lua changes. Unlike Vim script, Lua does not implicitly convert strings to numbers, so this comparison threw an error.
-rw-r--r--runtime/lua/nvim/health.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/nvim/health.lua b/runtime/lua/nvim/health.lua
index e11574ee97..02e08bd381 100644
--- a/runtime/lua/nvim/health.lua
+++ b/runtime/lua/nvim/health.lua
@@ -273,7 +273,7 @@ local function check_tmux()
if tmux_esc_time ~= 'error' then
if empty(tmux_esc_time) then
health.report_error('`escape-time` is not set', suggestions)
- elseif tmux_esc_time > 300 then
+ elseif tonumber(tmux_esc_time) > 300 then
health.report_error(
'`escape-time` (' .. tmux_esc_time .. ') is higher than 300ms',
suggestions