Docs
This commit is contained in:
parent
347fd6ce59
commit
decac73fec
2 changed files with 2 additions and 2 deletions
|
@ -130,7 +130,7 @@ impl RuleState for CustomStyleState {
|
|||
.map(|last| {
|
||||
(
|
||||
last.location().source(),
|
||||
last.location().end() - 1..last.location().end(),
|
||||
last.location().end_offset(1)..last.location().end(),
|
||||
)
|
||||
})
|
||||
.unwrap();
|
||||
|
|
|
@ -407,7 +407,7 @@ impl<'a> Semantics<'a> {
|
|||
let len = usize::min(range.end - cursor.pos, end);
|
||||
let clen = self.source.content()[cursor.pos..cursor.pos + len]
|
||||
.chars()
|
||||
.fold(0, |acc, _| acc + 1);
|
||||
.fold(0, |acc, c| acc + c.len_utf16());
|
||||
|
||||
let delta_line = cursor.line - current.line;
|
||||
let delta_start = if delta_line == 0 {
|
||||
|
|
Loading…
Reference in a new issue