mirror of https://github.com/rivo/tview.git
Fixed string position for escaped sequences. Fixes #886
This commit is contained in:
parent
a39fe28ba4
commit
8a0aeb0aa3
|
@ -156,7 +156,7 @@ func step(str string, state *stepState, opts stepOptions) (cluster, rest string,
|
||||||
} else if cluster[0] == '[' { // Starting closing sequence.
|
} else if cluster[0] == '[' { // Starting closing sequence.
|
||||||
// Swallow the first one.
|
// Swallow the first one.
|
||||||
cluster, rest, state.boundaries, state.unisegState = uniseg.StepString(rest, preState)
|
cluster, rest, state.boundaries, state.unisegState = uniseg.StepString(rest, preState)
|
||||||
state.grossLength = len(cluster)
|
state.grossLength += len(cluster)
|
||||||
if cluster[0] == ']' {
|
if cluster[0] == ']' {
|
||||||
state.escapedTagState = etNone
|
state.escapedTagState = etNone
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue