Pascal Kuthe
7ebcf4e919
properly handle LSP position encoding ( #5711 )
...
* properly handle LSP position encoding
* add debug assertion to Transaction::change
* Apply suggestions from code review
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
---------
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2023-02-09 16:19:29 +09:00
Blaž Hrastnik
c2c1280f02
Resolve a bunch of upcoming clippy lints
2022-11-04 21:06:28 +09:00
A-Walrus
d6e4fd15fc
Fix failing test with unicode-lines feature ( #3455 )
2022-08-17 10:37:34 +09:00
Ivan Tham
8b02bf2ea8
Add (prev) paragraph motion
...
Also improved testing facility.
Fix #1580
2022-04-03 00:46:53 +09:00
Blaž Hrastnik
0b9620108d
ropey 1.4.1 fixes the issue
2022-03-17 12:03:15 +09:00
Blaž Hrastnik
f67e1ee172
Put esoteric line endings behind a feature flag
2022-03-17 09:29:47 +09:00
Omnikar
f064894e57
Fix Clippy lints in tests ( #1563 )
...
Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
2022-01-23 16:37:23 +09:00
Blaž Hrastnik
cee7ad781e
Mark a few functions as `const`
2021-10-24 17:28:29 +09:00
Nathan Vegdahl
6e15c9b874
Make vertical selection movement work properly.
2021-07-05 18:58:33 -07:00
Nathan Vegdahl
b571f28641
Remove #[allow(unused)] from helix-core, and fix unused imports.
...
Still a bunch more warnings to fix in core, but it's a start.
2021-07-01 19:06:52 -07:00
Nathan Vegdahl
38bf9c2576
Missed some items in the CRLF PR.
2021-06-23 12:43:09 +09:00
Nathan Vegdahl
f2954fa153
Flesh out the line ending utility unit tests.
2021-06-21 12:56:42 -07:00
Nathan Vegdahl
7c4fa18764
Fix clippy warnings.
2021-06-21 12:02:44 -07:00
Nathan Vegdahl
07e28802f6
Add function to get the line ending of a str slice.
...
This is needed in some places.
2021-06-21 10:29:29 -07:00
Nathan Vegdahl
3d3149e0d5
Silence clippy warning.
2021-06-20 16:13:59 -07:00
Nathan Vegdahl
4efd6713c5
Work on moving code over to LineEnding instead of assuming '\n'.
...
Also some general cleanup and some minor fixes along the way.
2021-06-20 15:33:02 -07:00
Nathan Vegdahl
5d22e3c4e5
Misc fixes and clean up of line ending detect code.
2021-06-20 00:40:41 -07:00
Jan Hrastnik
8634e04a31
added the line_end helper function
2021-06-20 02:22:10 +02:00
Jan Hrastnik
701eb0dd68
changed some hardcoded newlines, removed a else if in line_ending.rs
2021-06-20 01:24:36 +02:00
Jan Hrastnik
97323dc2f9
ran cargo fmt
2021-06-19 14:05:11 +02:00
Jan Hrastnik
ecb884db98
added get_line_ending from pr comment
2021-06-19 14:03:14 +02:00
Jan Hrastnik
8bccd6df30
applied changes from pr review
2021-06-17 13:49:50 +02:00
Jan Hrastnik
a4f5a0134e
trying out line ending helper functions in commands.rs
2021-06-16 17:13:41 +02:00
Jan Hrastnik
a9a718c3ca
added some tests and a line_ending helper function in document.rs
2021-06-16 17:11:16 +02:00
Jan Hrastnik
e4849f41be
fix typo
2021-06-16 17:09:03 +02:00
Jan Hrastnik
9c419fe05c
added more changes from pr review for line_ending_detection
2021-06-16 17:08:46 +02:00
Jan Hrastnik
5eb6918392
resolved conflict in rebase
2021-06-16 17:05:14 +02:00