mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 08:35:28 +00:00
fix alternative fragment syntax
This commit is contained in:
parent
bb08b7cb9a
commit
f8afa8e085
1 changed files with 1 additions and 1 deletions
|
|
@ -449,7 +449,7 @@ fn scroll_to_anchor(text_view: &TextView, fragment: GString) -> bool {
|
||||||
let query = uri_unescape_string(&fragment, None::<&str>).unwrap_or(fragment);
|
let query = uri_unescape_string(&fragment, None::<&str>).unwrap_or(fragment);
|
||||||
let result = try_scroll(text_view, &query); // exact match
|
let result = try_scroll(text_view, &query); // exact match
|
||||||
if !result {
|
if !result {
|
||||||
return try_scroll(text_view, &query.replace("-", " ")); // unstable @TODO
|
return try_scroll(text_view, &query.replace(" ", "-")); // alt syntax
|
||||||
}
|
}
|
||||||
result
|
result
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue