mirror of
https://github.com/nushell/nushell
synced 2024-12-26 04:53:09 +00:00
Fix bug with alias handling when searching for matching brackets (#6931)
* [4325] - fix slicing * [4325] - fix style
This commit is contained in:
parent
b56e603c58
commit
3b26b4355e
1 changed files with 2 additions and 1 deletions
|
@ -268,7 +268,8 @@ fn find_matching_block_end_in_expr(
|
|||
};
|
||||
}
|
||||
|
||||
if expression.span.contains(global_cursor_offset) {
|
||||
if expression.span.contains(global_cursor_offset) && expression.span.start >= global_span_offset
|
||||
{
|
||||
let expr_first = expression.span.start;
|
||||
let span_str = &line
|
||||
[expression.span.start - global_span_offset..expression.span.end - global_span_offset];
|
||||
|
|
Loading…
Reference in a new issue