code-editor: Fix highlight offset on Windows. (#886)
Again, caused by need `split('\n')` not use `.lines()`.
This commit is contained in:
parent
d0ccb6bf17
commit
2d6284694d
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ impl CodeHighlighter {
|
|||
|
||||
let mut lines = vec![];
|
||||
let mut new_cache = HashMap::new();
|
||||
for line in text.lines() {
|
||||
for line in text.split('\n') {
|
||||
let cache_key = gpui::hash(&line);
|
||||
|
||||
// cache hit
|
||||
|
|
|
|||
Loading…
Reference in a new issue