mirror of https://github.com/odrling/Aegisub
Handle override blocks starting at the beginning of the line correctly
This commit is contained in:
parent
10cbff0ee2
commit
f0ef14669f
|
@ -164,8 +164,8 @@ int block_at_pos(std::string const& text, int pos) {
|
|||
bool in_block = false;
|
||||
|
||||
for (int i = 0; i <= pos && i <= max; ++i) {
|
||||
if (i > 0 && text[i] == '{') {
|
||||
if (!in_block)
|
||||
if (text[i] == '{') {
|
||||
if (!in_block && i > 0)
|
||||
++n;
|
||||
in_block = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue