Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Maximilian Dietrich <[email protected]>
  • Loading branch information
mrjones2014 and mdietrich16 committed Oct 17, 2023
1 parent dd80b8d commit 686fef3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/smart-splits/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ function M.set_default_multiplexer()
-- because you aren't in any terminal, you're in a Neovim GUI
local current_ui = vim.tbl_filter(function(ui)
return ui.chan == 1
end, vim.api.nvim_list_uis())[0]
if not current_ui.stdin_tty and not current_ui.stdout_tty then
end, vim.api.nvim_list_uis())[1]
if current_ui and not current_ui.stdin_tty and not current_ui.stdout_tty then
config.multiplexer_integration = false
return nil
end
Expand Down

0 comments on commit 686fef3

Please sign in to comment.