Comment 5 for bug 990949

Revision history for this message
Huihuo Zheng (zhenghh04) wrote :

I finally figure out a method to fix this bug::

One can change /usr/lib/gedit/pluins/latex/latex/editor.py as

    def on_save(self):
        """
        The file has been saved

        Update models
        """
        if self._preferences.get("outline-connect-to-editor"):
            self._preferences.set("outline-connect-to-editor", False)
            self.__parse()
            self._preferences.set("outline-connect-to-editor", True)
        else:
            self.__parse()

This work for me.
The idea is when saving the document, we disconnect the outline and the editor.