From de63574b534cf838be090702b5c78feca9f031d2 Mon Sep 17 00:00:00 2001 From: jgmdev Date: Fri, 3 Jun 2022 04:13:54 -0400 Subject: [PATCH] plugin linewrapping: added priority Since the linewrapping plugin modifies some of the DocView line calculation and positioning functions we need to make sure of loading it before other plugins. This way we make sure that plugins that also overwrite and depend on DocView functionality aren't using the original methods without the linewrapping changes, which leads to wrong line and column calculations. --- data/plugins/linewrapping.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/plugins/linewrapping.lua b/data/plugins/linewrapping.lua index 885474fb..66b303ee 100644 --- a/data/plugins/linewrapping.lua +++ b/data/plugins/linewrapping.lua @@ -1,4 +1,4 @@ --- mod-version:3 +-- mod-version:3 --priority:10 local core = require "core" local common = require "core.common" local DocView = require "core.docview"