File tree Expand file tree Collapse file tree 2 files changed +21
-2
lines changed
Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,24 @@ Go菜单对多窗口的逻辑适配还没有做,这部分可能会在以后的
43437 . 检查:A1被当作新的标签页在W2中打开
44448 . 检查:W1中A1仍然存在
4545
46+ ## 2025/07/18 令Popup补全模式下不显示消息
47+ ### What
48+ 移除了Popup补全模式下显示消息的代码。
49+ 添加了补全过程中显示消息的条件,仅当Inline模式时显示。
50+
51+ ### 如何测试?
52+ 这块修改比较小,不写到上面的测试流程中了。
53+ 1 . 菜单栏导航,Edit->Preferences,在General选项中有一项Completion style
54+ 2 . 切换Completion style到Popup
55+ 3 . 在正文中直接输入"a ab abc"
56+ 4 . 在正文的下一个单词输入a,然后按下tab
57+ 5 . 检查:底部message没有被清空
58+ 6 . 不断按下tab触发循环
59+ 7 . 检查:底部没有更新message
60+
61+ ### Why
62+ Darcy的建议。
63+
4664## 2025/07/16 优化get_passive_view_of_tabpage的逻辑
4765### What?
4866优化了get_passive_view_of_tabpage中直接返回现存view的条件。添加了else分支以实现在一个view处于detach的且处在当前窗口的标签栏的情况下直接返回该view。
Original file line number Diff line number Diff line change @@ -125,7 +125,9 @@ edit_interface_rep::complete_message () {
125125 if (i != 1 ) s << sep;
126126 s << completion_prefix << completions[j];
127127 }
128- set_message (concat (" Other completions: " , verbatim (s)), " tab" );
128+ if (completion_style == string (" Inline" )) {
129+ set_message (concat (" Other completions: " , verbatim (s)), " tab" );
130+ }
129131}
130132
131133void
@@ -185,7 +187,6 @@ edit_interface_rep::complete_popup (string key) {
185187 string old_completion = completions[completion_pos];
186188 string full_completion = completion_prefix * old_completion;
187189 int full_completion_N= N (full_completion);
188- set_message (" " , " " );
189190 if (key == " space" ) key= " " ;
190191
191192 if (key == " enter" || key == " return" ) {
You can’t perform that action at this time.
0 commit comments