neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 60df0c06510cc65d68a2693722577d437264f67d
parent ef89f9fd46ab591183b7f59f31f5a2e55f7a526b
Author: Sean Dewar <seandewar@users.noreply.github.com>
Date:   Mon, 16 Jan 2023 10:37:14 +0000

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.

Diffstat:
Mruntime/lua/nvim/health.lua | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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