Skip to content

renderer strikethrough unicode code points off-by-one #1141

Open
@kevinlawler

Description

@kevinlawler

Description
In MacVim 8.2.2127 (168) with Core Text Renderer on. This bug does not reproduce with Core Text Renderer off (legacy renderer on).

I believe what is happening is MacVim is displaying strikethrough unicode code points one character to the left of where they should appear, or something to that effect.

I'm using unicode control point "\u0336" for strikethrough

To Reproduce

Copy-paste and view this text in both renderers (in browser html textbox displays correctly but html preview/render appears incorrect).

this is some s̶t̶r̶i̶k̶e̶t̶h̶r̶o̶u̶g̶h̶ text

Expected behavior

Only "strikethrough" is struck.

Actual behavior

Strike extends before the word into the space. The final letter h is unstruck.

Screenshots

Screen Shot 2020-12-14 at 4 48 37 AM

Environment:
MacOS Big Sur 11.0.1 (20B29), and 11.1 (20C69)
MacVim 8.2.2127 (168) with Core Text Renderer on

if has("gui_macvim")
  set guifont=Courier:h12
  set transparency=0
  set blur=20
endif

Metadata

Metadata

Assignees

No one assigned

    Labels

    RendererText rendering issues, including CoreText renderer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions