I guess this will fix it, doesn't it?
diff --git a/geanylatex/src/latexstructure.c b/geanylatex/src/latexstructure.c
```
index b06a9d2..f16cd38 100644
--- a/geanylatex/src/latexstructure.c
+++ b/geanylatex/src/latexstructure.c
@@ -94,11 +94,10 @@ void glatex_structure_lvlup(void)
                        haystack = NULL;
                        sci_replace_sel(doc->editor->sci, tmp);
                        g_free(tmp);
-                       sci_end_undo_action(doc->editor->sci);
                        break;
                }
        }
-
+       sci_end_undo_action(doc->editor->sci);
        if (haystack != NULL)
                g_string_free(haystack, TRUE);
 }

```

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/455#issuecomment-228558336

Reply via email to