Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
yozhipozhi committed Jan 23, 2011
1 parent f86ebf8 commit acf87e6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions plugins/document_search/lib/document_search/commands.rb
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,11 @@ def initialize(query, replace, options)
# Replaces the currently selected text, if it matches the search criteria, then finds and
# selects the next match in the document.
#
# This command maintains the invariant that no text is replaced without first being
# selected, so the user always knows exactly what change is about to be made. A ramification
# of this policy is that, if no text is selected beforehand, or the selected text does not
# match the query, then "replace" portion of "replace and find" is essentially skipped, so
# that two button presses are required.
# This command maintains the invariant that no text is replaced without first being selected,
# so the user always knows exactly what change is about to be made. A ramification of this
# policy is that, if no text is selected beforehand, or the selected text does not match the
# query, then "replace" portion of "replace and find" is essentially skipped, so that two button
# presses are required.
class ReplaceAndFindCommand < ReplaceCommandBase
def execute
offsets = selection_byte_offsets
Expand Down

0 comments on commit acf87e6

Please sign in to comment.