Bug fix release.
Fixed
-
Right-click → Translate / Correct… on a terminal selection kept saying "select some
text first." xterm stores a selection as buffer coordinates, not as text: the menu
item was enabled because the coordinates were there, but by the time you clicked it the
program in the tab had repainted those rows — so reading the selection back returned
nothing. Every tab with a busy agent in it hit this.The menu now takes the selection when it opens and never re-reads the buffer; copy,
translate and correct all act on that one string. Each tab also remembers its last
selection, so the items keep working when xterm drops its own selection a moment before
the right-click, instead of greying out.
Universal (Apple Silicon + Intel), signed, notarized and stapled. macOS 10.15+.
中文说明: 修复了在终端里选中文字后,右键「翻译 / 修正…」一直提示「没有可翻译的内容 ——
请先选中文本」的问题。xterm 保存的是选区坐标而不是文字,菜单项凭坐标点亮,可等到你点下去
时,标签里的程序已经把那几行重绘过了,再读一次自然读到空。现在菜单在弹出的那一刻就把选中的
文字取下来,之后不再回读缓冲区,复制 / 翻译 / 修正三项用的都是同一份文字;每个标签还会记住上
一次的选区,xterm 自己丢掉选区时菜单也不会再置灰。通用二进制(Apple Silicon 与 Intel),已签
名并公证。