Maximus5 / ConEmu

Customizable Windows terminal with tabs, splits, quake-style, hotkeys and more
https://conemu.github.io/
BSD 3-Clause "New" or "Revised" License
8.62k stars 575 forks source link

Unicode "─" U+2500 results in cursor shifting a little bit to the right. #1138

Closed wumo closed 7 years ago

wumo commented 7 years ago

Versions

ConEmu build: 170402 OS version: Windows 10 x64 Used shell version: git-bash

ConEmu/About/Sysinfo:
ConEmu 170402 [64] Startup Info
  OsVer: 10.0.15063.x64, Product: 1, SP: 0.0, Suite: 0x100, SM_SERVERR2: 0
  CSDVersion: , ReactOS: 0 (), Rsrv: 0
  DBCS: 1, WINE: 0, PE: 0, Remote: 0, ACP: 936, OEMCP: 936, Admin: 0
  StartTime: 2017-05-11 21:10:21.487
  AppID: 49922b4d6ae2ce22bcf871b666573d5f::162
  Desktop: `Winsta0\Default`, SessionId: 1, ConsoleSessionId: 1
  Title: `C:\Program Files\ConEmu\ConEmu64.exe`
  Size: {0,0},{0,0}
  Flags: 0x00000401, ShowWindow: 1, ConHWnd: 0x00000000
  char: 1, short: 2, int: 4, long: 4, u64: 8
  Handles: 0x00000000, 0x00010003, 0x00000000
  Current PID: 8064, TID: 4364
  Active HKL: 0x0000000004090409
  GetKeyboardLayoutList: 0x0000000008040804 0x0000000004090409
CmdLine: "C:\Program Files\ConEmu\ConEmu64.exe" -here -run {git bash} -cur_console:n
ExecMod: C:\Program Files\ConEmu\ConEmu64.exe
WorkDir: C:\Users\wumo-pc\Desktop
PathEnv: C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Git\cmd;C:\Users\wumo-pc\AppData\Local\Microsoft\WindowsApps;d:\Program Files (x86)\Microsoft VS Code\bin;D:\Program Files\Java\jdk1.8.0_121\bin;
ConFont: 0  Lucida Console  00  Consolas    932 *MS ゴシック    936 *新宋体
CMD's AutoRuns: {not defined}
Foreground: x00120178 {1913,24}-{2761,1032} 'VirtualConsoleClass' - MINGW64:/c/Users/wumo-pc/Desktop
MouseCursor: {2773,443} MouseMonitor: 00010003 StartMonitor: 00010003
Display: bpp=32, planes=1, align=1, vrefr=60, shade=x00000000, rast=x00007E99, dpi=96x96, per-mon-dpi=1
Monitors (dpi: WholeDesktop, Effective, Angular, RAW):
  00010003: {1920,24}-{3600,1074} (1680x1050), Working: {1920,24}-{3600,1034} (1680x1010), dpi: {96,96};{96,96};{89,89};{90,90} `\\.\DISPLAY1`
  00010001: {0,0}-{1920,1080} (1920x1080), Working: {0,0}-{1847,1080} (1847x1080), dpi: {96,96};{96,96};{90,90};{91,91} `\\.\DISPLAY2` <<== Primary
Modules:
  00007FF7AC430000-00007FF7AC6C3FFF   294000 C:\Program Files\ConEmu\ConEmu64.exe
  00007FFCE6E30000-00007FFCE700AFFF   1DB000 C:\Windows\SYSTEM32\ntdll.dll
  00007FFCE69B0000-00007FFCE6A5DFFF    AE000 C:\Windows\System32\KERNEL32.DLL
  00007FFCE3BE0000-00007FFCE3E28FFF   249000 C:\Windows\System32\KERNELBASE.dll
  00007FFCE6160000-00007FFCE62A9FFF   14A000 C:\Windows\System32\USER32.dll
  00007FFCE3E90000-00007FFCE3EADFFF    1E000 C:\Windows\System32\win32u.dll
  00007FFCE44A0000-00007FFCE44C6FFF    27000 C:\Windows\System32\GDI32.dll
  00007FFCE3A50000-00007FFCE3BD8FFF   189000 C:\Windows\System32\gdi32full.dll
  00007FFCE42F0000-00007FFCE4389FFF    9A000 C:\Windows\System32\msvcp_win.dll
  00007FFCE3FB0000-00007FFCE40A5FFF    F6000 C:\Windows\System32\ucrtbase.dll
  00007FFCE44D0000-00007FFCE4570FFF    A1000 C:\Windows\System32\ADVAPI32.dll
  00007FFCE62B0000-00007FFCE634CFFF    9D000 C:\Windows\System32\msvcrt.dll
  00007FFCE49D0000-00007FFCE4A28FFF    59000 C:\Windows\System32\sechost.dll
  00007FFCE4700000-00007FFCE4824FFF   125000 C:\Windows\System32\RPCRT4.dll
  00007FFCE4D20000-00007FFCE6156FFF  1437000 C:\Windows\System32\SHELL32.dll
  00007FFCE3F60000-00007FFCE3FA8FFF    49000 C:\Windows\System32\cfgmgr32.dll
  00007FFCE4390000-00007FFCE4439FFF    AA000 C:\Windows\System32\shcore.dll
  00007FFCE6B30000-00007FFCE6E28FFF   2F9000 C:\Windows\System32\combase.dll
  00007FFCE4280000-00007FFCE42E9FFF    6A000 C:\Windows\System32\bcryptPrimitives.dll
  00007FFCE3350000-00007FFCE3A41FFF   6F2000 C:\Windows\System32\windows.storage.dll
  00007FFCE6380000-00007FFCE63D0FFF    51000 C:\Windows\System32\shlwapi.dll
  00007FFCE32E0000-00007FFCE32F0FFF    11000 C:\Windows\System32\kernel.appcore.dll
  00007FFCE3300000-00007FFCE334BFFF    4C000 C:\Windows\System32\powrprof.dll
  00007FFCE32A0000-00007FFCE32B4FFF    15000 C:\Windows\System32\profapi.dll
  00007FFCE4580000-00007FFCE4687FFF   108000 C:\Windows\System32\COMDLG32.dll
  00007FFCE4BB0000-00007FFCE4CF4FFF   145000 C:\Windows\System32\ole32.dll
  00007FFCE6A60000-00007FFCE6B1EFFF    BF000 C:\Windows\System32\OLEAUT32.dll
  00007FFCD8770000-00007FFCD8779FFF     A000 C:\Windows\SYSTEM32\VERSION.dll
  00007FFCD9210000-00007FFCD9476FFF   267000 C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.15063.0_none_108e4f62dfe5d999\COMCTL32.dll
  00007FFCD9140000-00007FFCD9162FFF    23000 C:\Windows\SYSTEM32\WINMM.dll
  00007FFCD91F0000-00007FFCD9206FFF    17000 C:\Windows\SYSTEM32\NETAPI32.dll
  00007FFCD90F0000-00007FFCD911AFFF    2B000 C:\Windows\SYSTEM32\winmmbase.dll
  00007FFCDDDD0000-00007FFCDDDE7FFF    18000 C:\Windows\SYSTEM32\SAMCLI.DLL
  00007FFCE29E0000-00007FFCE29ECFFF     D000 C:\Windows\SYSTEM32\NETUTILS.DLL
  00007FFCE6350000-00007FFCE637CFFF    2D000 C:\Windows\System32\IMM32.DLL
  00007FFCE1AC0000-00007FFCE1B54FFF    95000 C:\Windows\system32\uxtheme.dll
  00007FFCD2FF0000-00007FFCD3019FFF    2A000 C:\Windows\SYSTEM32\dwmapi.dll
  00007FFCE4B10000-00007FFCE4BADFFF    9E000 C:\Windows\System32\clbcatq.dll
  00007FFCAD5E0000-00007FFCAD807FFF   228000 C:\Windows\System32\msxml3.dll
  00007FFCE31E0000-00007FFCE3204FFF    25000 C:\Windows\System32\bcrypt.dll
  00007FFCE6840000-00007FFCE69A5FFF   166000 C:\Windows\System32\MSCTF.dll
  00007FFCC7390000-00007FFCC7811FFF   482000 C:\Windows\system32\explorerframe.dll
  0000000054610000-000000005471DFFF   10E000 C:\Program Files\ConEmu\ConEmu\ConEmuCD64.dll
  00007FFCD2650000-00007FFCD26D1FFF    82000 C:\Windows\System32\TextInputFramework.dll
  00007FFCD3FB0000-00007FFCD4281FFF   2D2000 C:\Windows\System32\CoreUIComponents.dll
  00007FFCE12B0000-00007FFCE1392FFF    E3000 C:\Windows\System32\CoreMessaging.dll
  00007FFCE25A0000-00007FFCE25D0FFF    31000 C:\Windows\SYSTEM32\ntmarta.dll
  00007FFCDD4A0000-00007FFCDD5D8FFF   139000 C:\Windows\SYSTEM32\wintypes.dll
  00007FFCDDE00000-00007FFCDDE14FFF    15000 C:\Windows\SYSTEM32\usermgrcli.dll
  00007FFCC7820000-00007FFCC7866FFF    47000 C:\Windows\system32\dataexchange.dll
  00007FFCE0A20000-00007FFCE0CFEFFF   2DF000 C:\Windows\system32\d3d11.dll
  00007FFCE13F0000-00007FFCE1511FFF   122000 C:\Windows\system32\dcomp.dll
  00007FFCE2110000-00007FFCE21B3FFF    A4000 C:\Windows\system32\dxgi.dll
  00007FFCE1B90000-00007FFCE1CFFFFF   170000 C:\Windows\system32\twinapi.appcore.dll
  00007FFCDE3D0000-00007FFCDE565FFF   196000 C:\Windows\SYSTEM32\PROPSYS.dll

Problem description

Every Unicode "─" U+2500 results in cursor shifting a little bit to the right. image

Steps to reproduce

  1. open git-bash using ConEmu
  2. type in multiple "─"

Actual results

multiple spaces between the "──────────" and the cursor. image

Expected results

no space between the "──────────" and the cursor. image

Maximus5 commented 7 years ago
  1. No Windows version
  2. If it's a Win10 than you didn't search for duplicates. It's actually a bug in Windows.

Anyway, I'm interested in text from ConEmu/About/SysInfo.

MewX commented 7 years ago

@Maximus5 Same here (preview version 170402)

In a remote vim editor, I typed four CJK characters, and the possible cursor positions for four characters are those: snipaste_20170610_112708 snipaste_20170610_112720 snipaste_20170610_112732 snipaste_20170610_112639

My OS is win10 15063, target system is RHLE. Using git-bash directly is perfect, but using ConEmu is unusable for this case.

The Fonts settings: snipaste_20170610_113114 P.S. The name of the CJK font is 新宋体 which is the default mono-width system font, using by Visual Studio by default.

I also tried ticking/unticking monowidth, it didn't work.

Maximus5 commented 7 years ago

@MewX, if you check the whats_new, you can see when it was fixed.

MewX commented 7 years ago

Downloaded the alpha version, and it worked perfectly! Thanks!