macvim-dev / macvim-dev/macvim

renderer strikethrough unicode code points off-by-one

オープン
#1,141 コメント 7 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

Renderer
主要言語
Vim Script
スター
7.9k
フォーク
691
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

この issue ではソースファイルもテストも指定されていません。MacVim's Core Text Renderer を有効にしてテキストを再現し、legacy renderer と比較して、結合打ち消し記号 U+0336 の処理を追跡してください。打ち消し線が意図した単語の上で始まり、そこで終わり、前のスペースにずれ込まなければ完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
macos, vim
領域
computer-graphics, desktop
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。