mirror of
https://github.com/helix-editor/helix.git
synced 2025-04-03 19:07:44 +03:00
Remove special handling of line ending characters in selection replacement (#10786)
* Remove special-casing of line ending characters in selection replacement * Refactor line ending handling and integration test to address code review comments
This commit is contained in:
parent
aa1630a41a
commit
03813bbc2e
2 changed files with 18 additions and 12 deletions
|
@ -722,5 +722,19 @@ fn foo() {
|
|||
))
|
||||
.await?;
|
||||
|
||||
test((
|
||||
indoc! {"\
|
||||
#[a
|
||||
b
|
||||
c
|
||||
d
|
||||
e|]#
|
||||
f
|
||||
"},
|
||||
"s\\n<ret>r,",
|
||||
"a#[,|]#b#(,|)#c#(,|)#d#(,|)#e\nf\n",
|
||||
))
|
||||
.await?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue