Skip to content

Commit ee2b1cd

Browse files
author
Łukasz Fudro
committed
fix opening a browser that is located in a path that contains unicode characters
1 parent 061e65e commit ee2b1cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ where
1212
let mut in_quotes = false;
1313
let mut idx = 0;
1414
for ch in line.chars() {
15-
idx += 1;
15+
idx += ch.len_utf8();
1616
match ch {
1717
'"' => {
1818
if let Some(start_idx) = start {

0 commit comments

Comments
 (0)