Commit b8d6c0a
authored
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.1 parent 139b4c3 commit b8d6c0a
1 file changed
+4
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| 209 | + | |
209 | 210 | | |
210 | 211 | | |
211 | 212 | | |
212 | | - | |
| 213 | + | |
213 | 214 | | |
214 | 215 | | |
215 | 216 | | |
216 | 217 | | |
217 | | - | |
218 | | - | |
| 218 | + | |
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
223 | 222 | | |
224 | 223 | | |
225 | 224 | | |
| |||
0 commit comments