Ingo Karkat
204439f249
BUG: Regression: Missing ) after 067dea5834
...
Fix by moving to new ingo#change#Set(), which is more elegant.
2019-04-02 11:57:28 +02:00
Ingo Karkat
067dea5834
ingo#text#replace#Between(): Refactoring: Use new ingo#pos#Make4()
2019-04-01 19:25:34 +02:00
Ingo Karkat
8318593d27
BUG: ingo#text#replace#Between() and ingo#text#replace#Area() cause "E684: list index out of range: 0" when the replacement text is empty
...
The result of split() (into individual lines) is empty then. Need to set the {keepempty} flag to obtain a List with a single empty String in it.
2019-03-06 15:45:33 +01:00
Ingo Karkat
0a941b37b8
BUG: ingo#text#replace#Between() and ingo#text#replace#Area() mistakenly update current line instead of passed position
2019-03-06 15:23:47 +01:00
Ingo Karkat
658744bc76
Add ingo#text#GetFromArea(), rename ingo#text#replace#Area() to ingo#text#replace#Between() and add ingo#text#replace#Area() that actually takes a (single) a:area argument
2017-08-24 17:54:49 +02:00
Ingo Karkat
339b42440e
Also set the change marks to the replaced area
...
Make col argument 1-based for consistency.
2017-05-26 17:36:54 +02:00
Ingo Karkat
f140991e6c
Factor out and expose ingo#text#Replace#Area()
...
Allow a:Text Funcref in ingo#text#replace#PatternWithText().
CHG: When replacing at the cursor position, also jump to the beginning of the replacement. This is more consistent with Vim's default behavior.
2017-05-26 17:29:21 +02:00
Ingo Karkat
bc29842c16
2017-05-26 17:29:21 +02:00
Ingo Karkat
969d1decb4
file creation
2017-05-26 17:29:21 +02:00