Skip to content

Commit

Permalink
fix(api): Correct in_console().
Browse files Browse the repository at this point in the history
  • Loading branch information
DrKJeff16 committed May 29, 2024
1 parent 2832afa commit b904dfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/user/check/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function M.in_console()
local TERM = env['TERM']

--- TODO: This is not a good enough check. Must find a better solution.
return not M.value.field('DISPLAY', env) or vim.tbl_contains({ 'screen', 'linux' }, TERM)
return vim.tbl_contains({ 'screen', 'linux' }, TERM)
end

function M.new()
Expand Down

0 comments on commit b904dfa

Please sign in to comment.