Opened 5 years ago

Closed 4 years ago

#813 closed defect (fixed)

Find in files cannot find $self

Reported by: szabgab Owned by: waxhead
Priority: major Milestone:
Component: editor Version: trunk
Keywords: Cc:

Description

If there is a $ sign in front of the string I am looking for, the find-in-file does not find any matches. (Using Linux)

Change History (4)

comment:1 Changed 4 years ago by waxhead

  • Version changed from 0.53 to trunk

I found the same to be the case.

It seems that the value is being passed through to Ack, and it thinks it's a scalar not a literal string of $string.

I've added a regex to escape the string value if it has one of the special characters in it.

This seems to have worked.

comment:2 Changed 4 years ago by waxhead

  • Owner set to waxhead
  • Status changed from new to assigned

comment:3 Changed 4 years ago by waxhead

  • Summary changed from File in file cannot find $self to Find in files cannot find $self

comment:4 Changed 4 years ago by waxhead

  • Resolution set to fixed
  • Status changed from assigned to closed

OK, this is now fixed.

Changed the regex to the quotemeta function.

Note: See TracTickets for help on using tickets.