aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
authorJan Hrastnik2021-06-16 15:00:21 +0000
committerJan Hrastnik2021-06-16 15:00:21 +0000
commit3756c21baefa6182beaa9a3d5ced9d720cf9adcb (patch)
tree1b5593b5b74a41c42ee22958350f4795cde12509 /helix-term
parenta364d6c3837c36225dcd4ec9b15ef2c192feef0b (diff)
rebase on branch line_ending_detection
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/ui/editor.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs
index 63b3e277..0a646e93 100644
--- a/helix-term/src/ui/editor.rs
+++ b/helix-term/src/ui/editor.rs
@@ -179,7 +179,7 @@ impl EditorView {
// iterate over range char by char
for grapheme in RopeGraphemes::new(text) {
- if grapheme == "\n" {
+ if grapheme == "\n" || grapheme == "\r\n" {
visual_x = 0;
line += 1;