From e9f7d42aa62a31aeac3e6d89a2a5d6f1f2b0fd39 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Mon, 29 Apr 2024 13:37:04 +0800 Subject: [PATCH] fix: export error --- libs/qsynedit/qsynedit/exporter/exporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/qsynedit/qsynedit/exporter/exporter.cpp b/libs/qsynedit/qsynedit/exporter/exporter.cpp index 567f541b..e98b9ff3 100644 --- a/libs/qsynedit/qsynedit/exporter/exporter.cpp +++ b/libs/qsynedit/qsynedit/exporter/exporter.cpp @@ -95,7 +95,7 @@ void Exporter::exportRange(const PDocument& doc, BufferCoord start, BufferCoord continue; } if (i==stop.line && (startPos+token.length() > stop.ch)) { - token = token.remove(stop.ch - startPos - 1); + token = token.left(stop.ch - startPos - 1); } if (i==start.line && startPos < start.ch-1) { token = token.mid(start.ch-1-startPos);