Selaa lähdekoodia

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

jack2m 4 vuotta sitten
vanhempi
commit
a48c727276
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  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;