升级 mygo 到 v0.7.4,删除弹窗标记不可逆按钮
v0.7.2 → v0.7.4 两个补丁版本。逐文件 diff 后确认无影响本项目的破坏性变更: paintBlock 的签名改动只影响自定义 decor,本项目没有实现。 - fileops.go:删除弹窗用上新的 DestructiveButtons,把「永久删除」标出来 - view.go:补注释说明 NoScrollPastEnd 在 v0.7.4 下仍然必要 - 评估报告记录升级验证过程与滚动条行为变化 验证:build/vet/gofmt 全绿,lsp 与 app 包 -count=1 全绿(含真 gopls 与 右键菜单的 ui.Tester 用例);另编了 v0.7.2 二进制做像素级对照,差异仅在 滚动条滑块是否常驻。
This commit is contained in:
1 parent
6b07d16738
commit
88067cc15c
7 files changed
+32
-1
No files matched your search
@@ -472,6 +472,10 @@ func (a *App) editorArea(c *ui.Context, grow bool) {
|
||||
// 为真时是 `total - lineHeight`,短文本也大于 0,于是短文件照样画滚动条)。
|
||||
// 关掉后 scrollMax 变成 `total - viewH`,内容不满一页时被 max(0, …) 归零,
|
||||
// 滚动条自然消失;长文件不受影响,仍然照常滚动。
|
||||
//
|
||||
// mygo v0.7.4 起滚动条的滑块改成「指针在编辑器上或拖着它时才画」
|
||||
// (paintScrollbars 里 `shown := ed.pointerIn || ed.scrollbar.active`),
|
||||
// 但判据本身没变:不关的话,短文件只要鼠标一移进来,仍会冒出整条滑块。
|
||||
d.st.NoScrollPastEnd = true
|
||||
|
||||
// 上面是面包屑,下面是编辑器 + 缩略图。
|
||||
|
||||
Reference in new issue
Block a user