atom / find-and-replace

Find and replace in a single buffer and in the project
MIT License
242 stars 219 forks source link

Fix `this` bug #1155

Open icecream17 opened 2 years ago

icecream17 commented 2 years ago

See https://github.com/atom/find-and-replace/commit/9da051259931daac46feba55f26d3dcea9b39abd#commitcomment-55840601

Requirements

Description of the Change

The original code calls the function, instead of simply providing the function

Also based on the nearby functions, the functions need to be "bound" to the this value

Alternate Designs

Benefits

Possible Drawbacks

Applicable Issues