Skip to content

refactor: improve terminal toggle logic #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
docs: update outdated comment
  • Loading branch information
blink-so[bot] committed Jun 8, 2025
commit c25e5aa8dc6f22e81034d294ad965001f76f7a42
2 changes: 1 addition & 1 deletion lua/claudecode/terminal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ local function open_fallback_terminal(cmd_string, env_table, effective_term_conf

managed_fallback_terminal_winid = new_winid
managed_fallback_terminal_bufnr = vim.api.nvim_get_current_buf()
vim.bo[managed_fallback_terminal_bufnr].bufhidden = "hide" -- Wipe buffer when hidden (e.g., window closed)
vim.bo[managed_fallback_terminal_bufnr].bufhidden = "hide" -- Hide buffer when hidden (e.g., window closed)
-- buftype=terminal is set by termopen

vim.api.nvim_set_current_win(managed_fallback_terminal_winid)
Expand Down