Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix finding the start and end of the current query. (#239)
1. start_request was searching forward from the cursor position. Adding 'b' to the search flags fixed that. 2. Both start_request and end_request depended on the user having set 'nowrapscan' to prevent wrapping around the end of the file. Such wrapping could result in finding the wrong query. Adding 'W' to the search flags fixed that, and removed the need for the stopline parameter. 3. Refactored the way last_line is used in end_request.
- Loading branch information