macvim-dev / macvim-dev/macvim

renderer strikethrough unicode code points off-by-one

Aperta
#1,141 7 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Renderer
Lingua principale
Vim Script
Stelle
7.9k
Fork
691
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

L'issue non indica file sorgente né test. Riproduci il testo con MacVim's Core Text Renderer abilitato, confrontalo con il renderer legacy e traccia la gestione del segno di barratura combinante U+0336. Il lavoro è completato quando la barratura inizia e termina sulla parola prevista, senza spostarsi nello spazio precedente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
macos, vim
Ambito
computer-graphics, desktop
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.