[vim/vim] Gvim: ligatures are reshaped when cursor moves across constituent characters (Issue #20916)
ubaldot (Vim Github Repository) <[email protected]> Sat, 01 Aug 2026 14:31:16 -0700
| Newsgroups | gmane.editors.vim.devel |
|---|---|
| Message-ID | <vim/vim/issues/[email protected]> |
----==_mimepart_6a6e65a4a1782_c11160416788c Content-Type: text/plain; charset="UTF-8" ubaldot created an issue (vim/vim#20916) ### Steps to reproduce 1. Install Fira Code or any other font that support ligatures. Start gVim with: - set encoding=utf-8 - set renderoptions=type:directx - set guifont=Fira_Code:h12 2. Insert text containing a ligature sequence, for example: `<=` 3. Move the cursor repeatedly across the two characters. The symbol change shape: <img width="57" height="45" alt="Image" src="https://github.com/user-attachments/assets/48dfa00c-2816-4b83-b731-ca99aef064f0" /> ### Expected behaviour The cursor keeps consistently its correct shape: <img width="37" height="27" alt="Image" src="https://github.com/user-attachments/assets/221371cf-7556-4bca-b191-02e9fedaa263" /> Note that Vim run in Windows Terminal don't have this problem. ### Version of Vim 9.2 with patch 1-45 ### Environment Windows 11 ### Logs and stack traces ```shell ``` -- Reply to this email directly or view it on GitHub: https://github.com/vim/vim/issues/20916 You are receiving this because you are subscribed to this thread. Message ID: <vim/vim/issues/[email protected]> -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/vim/vim/issues/20916%40github.com. ----==_mimepart_6a6e65a4a1782_c11160416788c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div style=3D"display: flex; flex-wrap: wrap; white-space: pre-wrap; align-= items: center; "><img height=3D"20" width=3D"20" style=3D"border-radius:50%= ; margin-right: 4px;" decoding=3D"async" src=3D"https://avatars.githubuserc= ontent.com/u/10845685" /><strong>ubaldot</strong> created an issue <a href= =3D"https://github.com/vim/vim/issues/20916">(vim/vim#20916)</a></div> <h3 dir=3D"auto">Steps to reproduce</h3> <ol dir=3D"auto"> <li>Install Fira Code or any other font that support ligatures. Start gVim = with:</li> </ol> <ul dir=3D"auto"> <li>set encoding=3Dutf-8</li> <li>set renderoptions=3Dtype:directx</li> <li>set guifont=3DFira_Code:h12</li> </ul> <ol start=3D"2" dir=3D"auto"> <li>Insert text containing a ligature sequence, for example:</li> </ol> <p dir=3D"auto"><code class=3D"notranslate"><=3D</code></p> <ol start=3D"3" dir=3D"auto"> <li>Move the cursor repeatedly across the two characters.</li> </ol> <p dir=3D"auto">The symbol change shape:</p> <a href=3D"https://github.com/user-attachments/assets/48dfa00c-2816-4b83-b7= 31-ca99aef064f0">image.png (view on web)</a> <h3 dir=3D"auto">Expected behaviour</h3> <p dir=3D"auto">The cursor keeps consistently its correct shape:</p> <a href=3D"https://github.com/user-attachments/assets/221371cf-7556-4bca-b1= 91-02e9fedaa263">image.png (view on web)</a> <p dir=3D"auto">Note that Vim run in Windows Terminal don't have this probl= em.</p> <h3 dir=3D"auto">Version of Vim</h3> <p dir=3D"auto">9.2 with patch 1-45</p> <h3 dir=3D"auto">Environment</h3> <p dir=3D"auto">Windows 11</p> <h3 dir=3D"auto">Logs and stack traces</h3> <div class=3D"highlight highlight-source-shell" dir=3D"auto"><pre class=3D"= notranslate"></pre></div> <p style=3D"font-size:small;-webkit-text-size-adjust:none;color:#666;">&mda= sh;<br />Reply to this email directly, <a href=3D"https://github.com/vim/vi= m/issues/20916">view it on GitHub</a>, or <a href=3D"https://github.com/not= ifications/unsubscribe-auth/ACY5DGG4CWTJFNIBC5ZLYNL5HZOSJAVCNFSNUABEKJSXA33= TNF2G64TZHM2DAOJZG42DQMR3JFZXG5LFHM2TAMZZGEZDINJSGGQXMAQ">unsubscribe</a>.<= br />Triage notifications, keep track of coding agent tasks and review pull= requests on the go with GitHub Mobile for <a href=3D"https://github.com/no= tifications/mobile/ios/ACY5DGAVFMS4UBO63ICPNWT5HZOSJA5CNFSL4Z3JMQ5C6L3HNF2C= 22DVMIXUS43TOVSS6NJQGM4TCMRUGUZDDJTSMVQXG33OVJZXKYTTMNZGSYTFMSSWK5TFNZ2KUZT= PN52GK4S7NFXXG">iOS</a> and <a href=3D"https://github.com/notifications/mob= ile/android/ACY5DGFFJRNLVG4T4ZQWDX35HZOSJA5CNFSL4Z3JMQ5C6L3HNF2C22DVMIXUS43= TOVSS6NJQGM4TCMRUGUZDDJTSMVQXG33OVJZXKYTTMNZGSYTFMSSWK5TFNZ2K4ZTPN52GK4S7MF= XGI4TPNFSA">Android</a>. Download it today! <br />You are receiving this because you are subscribed to this thread.<img= src=3D"https://github.com/notifications/beacon/ACY5DGAUOIGKRAS6KJHQC7T5HZO= SJBFCNFSM6AAAAAC4WB347OWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHQAA= AAAEWFV4BJUZZGKYLTN5XKU43VMJZWG4TJMJSWI.gif" height=3D"1" width=3D"1" alt= =3D"" /><span style=3D"color: transparent; font-size: 0; display: none; vis= ibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-wid= th: 0; max-height: 0; mso-hide: all">Message ID: <span><vim/vim/issues/2= 0916</span><span>@</span><span>github</span><span>.</span><span>com></sp= an></span></p> <script type=3D"application/ld+json">[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/vim/vim/issues/20916", "url": "https://github.com/vim/vim/issues/20916", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]</script> <p></p> -- <br /> -- <br /> You received this message from the "vim_dev" maillist.<br /> Do not top-post! Type your reply below the text you are replying to.<br /> For more information, visit <a href=3D"http://www.vim.org/maillist.php">htt= p://www.vim.org/maillist.php</a><br /> <br /> --- <br /> You received this message because you are subscribed to the Google Groups &= quot;vim_dev" group.<br /> To unsubscribe from this group and stop receiving emails from it, send an e= mail to <a href=3D"mailto:[email protected]">vim_dev+uns= [email protected]</a>.<br /> To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/= vim_dev/vim/vim/issues/20916%40github.com?utm_medium=3Demail&utm_source=3Df= ooter">https://groups.google.com/d/msgid/vim_dev/vim/vim/issues/20916%40git= hub.com</a>.<br /> ----==_mimepart_6a6e65a4a1782_c11160416788c--