2
0
Эх сурвалжийг харах

ADD: Feature [0002653] "Selected text only" enable if text highlighted (#148)

jack2m 4 жил өмнө
parent
commit
a48c727276
1 өөрчлөгдсөн 3 нэмэгдсэн , 0 устгасан
  1. 3 0
      src/feditor.pas

+ 3 - 0
src/feditor.pas

@@ -833,6 +833,9 @@ begin
     SearchCaseSensitive := bSearchCaseSensitive;
     SearchFromCursor := bSearchFromCaret;
     SearchInSelectionOnly := bSearchSelectionOnly;
+    if Editor.SelAvail and not (Editor.BlockBegin.Y = Editor.BlockEnd.Y)
+    then
+      SearchInSelectionOnly := True;
     SearchRegExp := bSearchRegExp;
     // start with last search text
     SearchText := sSearchText;