11 Commits

Author SHA1 Message Date
Ingo Karkat 6df3caee51 ingo#range#lines#Get(): If the range is a backwards-looking ?{pattern}?, we need to attempt the match on any line with :global/^/...
Else, the border behavior is inconsistent: ranges that extend the passed range at the bottom are (partially) included, but ranges that extend at the front would not be.
2017-05-26 17:53:09 +02:00
Ingo Karkat 108ebf94db Extract ingo#range#merge#FromLnums() from ingo#range#merge#Merge() 2017-05-26 17:53:04 +02:00
Ingo Karkat 3332affa20 ingo#range#lines#Get(): A single (a:isGetAllRanges = 0) /.../ range already clobbers the last search pattern
Save and restore if necessary, and base didClobberSearchHistory on that check.
ingo#range#lines#Get(): Drop the ^ anchor for the range check to also detect /.../ as the end of the range.
2017-05-26 17:53:00 +02:00
Ingo Karkat 2239772ccc file creation 2017-05-26 17:53:00 +02:00
Ingo Karkat ca3479e2e2 file creation 2017-05-26 17:53:00 +02:00
Ingo Karkat 6cca07be74 ENH: Add a:isGetAllRanges optional argument to ingo#range#lines#Get() 2017-05-26 17:51:16 +02:00
Ingo Karkat 6aaefaa46a file creation 2017-05-26 17:47:37 +02:00
Ingo Karkat 64ab664660 ingo#range#lines#Get() needs to consider and temporarily disable closed folds when resolving /{pattern}/ ranges 2017-05-26 17:32:30 +02:00
Ingo Karkat ea984e206f 2017-05-26 17:32:05 +02:00
Ingo Karkat f3fa84fdff 2017-05-26 17:31:50 +02:00
Ingo Karkat 03ea89541a file creation 2017-05-26 17:29:50 +02:00