修复导入错误

This commit is contained in:
2025-10-05 19:22:55 +08:00
parent a12445a00a
commit 93113f4aaf
4 changed files with 143 additions and 40 deletions

View File

@@ -191,9 +191,7 @@ def _create_tmp(content: str) -> str:
def _open_with_nvim(file_path: str) -> None:
# 获取终端环境变量默认为xterm
term = os.environ.get('TERMINAL', '')
if not term:
term = 'xterm'
term = os.getenv('TERMINAL', 'xterm')
# 获取终端名称
name = os.path.basename(term)