Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(snacks): invalid window on:ClaudeCodeFocus#64

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
qw457812 wants to merge1 commit intocoder:main
base:main
Choose a base branch
Loading
fromqw457812:fix_snacks_win_toggle
Open
Changes fromall commits
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
8 changes: 4 additions & 4 deletionslua/claudecode/terminal/snacks.lua
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -167,11 +167,11 @@ function M.simple_toggle(cmd_string, env_table, config)
local logger = require("claudecode.logger")

-- Check if terminal exists and is visible
if terminal and terminal:buf_valid() and terminal.win then
if terminal and terminal:buf_valid() and terminal:win_valid() then
-- Terminal is visible, hide it
logger.debug("terminal", "Simple toggle: hiding visible terminal")
terminal:toggle()
elseif terminal and terminal:buf_valid() and not terminal.win then
elseif terminal and terminal:buf_valid() and not terminal:win_valid() then
-- Terminal exists but not visible, show it
logger.debug("terminal", "Simple toggle: showing hidden terminal")
terminal:toggle()
Expand All@@ -195,11 +195,11 @@ function M.focus_toggle(cmd_string, env_table, config)
local logger = require("claudecode.logger")

-- Terminal exists, is valid, but not visible
if terminal and terminal:buf_valid() and not terminal.win then
if terminal and terminal:buf_valid() and not terminal:win_valid() then
logger.debug("terminal", "Focus toggle: showing hidden terminal")
terminal:toggle()
-- Terminal exists, is valid, and is visible
elseif terminal and terminal:buf_valid() and terminal.win then
elseif terminal and terminal:buf_valid() and terminal:win_valid() then
local claude_term_neovim_win_id = terminal.win
local current_neovim_win_id = vim.api.nvim_get_current_win()

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp