Changeset 956

Show
Ignore:
Timestamp:
11/17/10 17:15:16 (3 years ago)
Author:
stefan
Message:

fixed bug #111: selection mark not always removed after search was closed with ESCAPE

Location:
trunk/src
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/jlatexeditor/gproperties/GProperties.java

    r949 r956  
    137137    properties.addEntry(new Def("editor.auto_completion.min_number_of_letters", INT_GT_0, "3")); 
    138138    properties.addEntry(new Def("editor.auto_completion.delay", INT_GT_0, "200")); 
     139    properties.addEntry(new Def("editor.clear_selection_when_closing_search", BOOLEAN, "true")); 
    139140 
    140141    properties.addEntry(new Comment("\n## Shortcuts")); 
  • trunk/src/sce/component/SCESearch.java

    r954 r956  
    11package sce.component; 
     2 
     3import jlatexeditor.gproperties.GProperties; 
    24 
    35import javax.swing.*; 
     
    253255      searchPositions.clear(); 
    254256      // todo: clear selection? 
     257      if (GProperties.getBoolean("editor.clear_selection_when_closing_search")) { 
     258        document.clearSelection(); 
     259      } 
    255260    } 
    256261    clearHighlights(visibility, selectionOnly.isSelected());