vifm.vim icon indicating copy to clipboard operation
vifm.vim copied to clipboard

If there are Korean characters in the path or file name, the screen will be broken.

Open jungkeun9 opened this issue 1 year ago • 3 comments

Environment

  • Windows 11
  • gVim 9.1
  • vifm / vifm.vim

Description

When running vifm in gvim :Vifm, the screen is broken if the path or file name includes Korean characters. termwintype winpty or conpty has same issue.

스크린샷 2024-07-21 024623

jungkeun9 avatar Jul 20 '24 18:07 jungkeun9

Do you experience similar issues when running Vifm outside of gVim?

Also, which path/filename are you talking about? Current working directory of Vim, Vifm or something else?

xaizek avatar Jul 20 '24 18:07 xaizek

  • There's no issue when running outside of gVim (tested on Windows Terminal v1.20.11781.0)

스크린샷 2024-07-21 140659

  • There's no issue when Vifm pane has only English characters. But when either side of pane has Hangul(Korean characters), the screen is broken.

jungkeun9 avatar Jul 21 '24 05:07 jungkeun9

There's no issue when running outside of gVim (tested on Windows Terminal v1.20.11781.0)

Judging by the screenshot it's not as bad, but there is still an issue.

vifm.vim doesn't handle terminal in any real way, so this is either a problem in Vifm/pdcurses which gets worse inside of gVim or an issue in gVim (in combination with Vifm's output or not). I could reproduce it using :terminal command and then running vifm, while output of dir doesn't cause such weird effects, but there are also no colors which could play a role. At the same time, using the same filename on Linux works without any issues, but I don't know if Vim uses the same parser on Linux as on Windows (not very likely).

Need to determine more precisely what causes this before judging if it can be addressed and where/how.

xaizek avatar Jul 21 '24 10:07 xaizek