mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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.
This commit is contained in:
parent
ef89f9fd46
commit
60df0c0651
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user