瀏覽代碼

app/edit: avoid refreshing inner editor when selection changes. the layout remains unchanged.

jkds 6 月之前
父節點
當前提交
347541e011
共有 1 個文件被更改,包括 0 次插入2 次删除
  1. 0 2
      bin/app/src/ui/edit/mod.rs

+ 0 - 2
bin/app/src/ui/edit/mod.rs

@@ -1000,8 +1000,6 @@ impl BaseEdit {
 
             //t!("handle_select(): set_selection({start}, {end})");
             editor.set_selection(start, end);
-            editor.refresh();
-
             editor.selected_text()
         };
         //d!("Select {seltext:?} from {clip_mouse_pos:?} (unclipped: {mouse_pos:?})");