abe33 / abe33/atom-pigments

Pigments + soft wrap = broken indentation

未關閉
#300 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug
主要語言
CoffeeScript
星號
518
分支
70
PR 合併指標
30 天內沒有已合併 PR

描述

Hi,

I have looked for a similar issue but didn't find anything similar to my problem.

I use Atom's soft wrap setting to see all my code even in narrow window spaces. But when pigment finds and displays a color, it breaks the indentation, and weird blank spaces are colored. See images below :

![image](https://cloud.githubusercontent.com/assets/10208811/25587877/47ba0cb6-2ea6-11e7-8430-7b893b1e203d.png)
![image](https://cloud.githubusercontent.com/assets/10208811/25587931/7f9d6df8-2ea6-11e7-9557-4f10367c1eff.png)

Does anyone have an idea on how to fix this ?

貢獻指南

開啟貢獻指南

研究方向

The issue is about soft wrap breaking indentation when pigments displays colors. Look at the pigment package's color highlighting logic, likely in the main CoffeeScript files. Start by reproducing the bug with Atom's soft wrap enabled, then examine how pigment overlays color markers on text. Check for existing tests related to rendering or indentation.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
coffeescript
領域
desktop
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
描述清楚
新手友好度
40/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。