-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Git Bash Mintty: only use cmd.exe if winpty missing #3811
Conversation
Thanks. While testing the patch, I have noticed a few things.
diff --git a/plugin/fzf.vim b/plugin/fzf.vim
index eee5e9c..290db45 100644
--- a/plugin/fzf.vim
+++ b/plugin/fzf.vim
@@ -530,7 +530,7 @@ try
let has_vim8_term = has('terminal') && has('patch-8.0.995')
let has_nvim_term = has('nvim-0.2.1') || has('nvim') && !s:is_win
let use_term = has_nvim_term ||
- \ has_vim8_term && !has('win32unix') && (has('gui_running') || s:is_win || s:present(dict, 'down', 'up', 'left', 'right', 'window'))
+ \ has_vim8_term && (has('gui_running') || s:is_win || s:present(dict, 'down', 'up', 'left', 'right', 'window'))
let use_tmux = (has_key(dict, 'tmux') || (!use_height && !use_term || prefer_tmux) && !has('win32unix') && s:splittable(dict)) && s:tmux_enabled()
if prefer_tmux && use_tmux
let use_height = 0 |
CTRL-C problem is fixed in 303c3ba. |
I can't reproduce it with Windows 10, Git Bash 2.42.0 and latest fzf 0.52.1dev (without
I think that's a good idea. My slight adaption tries to keep everything working where Let me suggest an additional check for the existence of |
So what do we do when |
When I removed winpty on Windows 10 with fzf 0.52.1-dev then elseif has('win32unix') && $TERM_PROGRAM ==# 'mintty' " && !executable('winpty')
let shellscript = s:fzf_tempname()
call s:writefile([command], shellscript)
let command = 'start //WAIT sh -c '.shellscript
let a:temps.shellscript = shellscript
endif the pop up shows whereas fzf 0.52.1 works fine. So it was meant that 0.52.1-dev keeps doing in the absence of winpty on Windows 11 what 0.52.1 did |
Addresses #3809