You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A buffer region in Vim, is described by four parameters: {pos1}, {pos2}, {regtype}, {inclusive}
Any function that accepts only {pos1}, {pos2} must either be reworked to also accept {regtype}, {inclusive}, or the caller must manually figure out the buffer segments that map to the "region", and feed them into the function.
Problem
A buffer region in Vim, is described by four parameters:
{pos1}, {pos2}, {regtype}, {inclusive}
Any function that accepts only
{pos1}, {pos2}
must either be reworked to also accept{regtype}, {inclusive}
, or the caller must manually figure out the buffer segments that map to the "region", and feed them into the function.Feature request
Extracted from discussion in #13998 (comment)
Introduce
getregionpos({pos1}, {pos2}, {regtype}, {inclusive})
which returns a list of start/end positions in the buffer.The text was updated successfully, but these errors were encountered: