From 60df0c06510cc65d68a2693722577d437264f67d Mon Sep 17 00:00:00 2001 From: Sean Dewar Date: Mon, 16 Jan 2023 10:37:14 +0000 Subject: 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. --- runtime/lua/nvim/health.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/lua') 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 -- cgit