mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2024-10-01 01:06:10 -04:00
partially back out that change, I wasn't reading
Signed-off-by: Jared Van Bortel <jared@nomic.ai>
This commit is contained in:
parent
1712830228
commit
81bbeef5b3
@ -24,7 +24,6 @@
|
|||||||
#include <QtGlobal>
|
#include <QtGlobal>
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <functional>
|
|
||||||
|
|
||||||
enum Language {
|
enum Language {
|
||||||
None,
|
None,
|
||||||
@ -1194,7 +1193,9 @@ void ChatViewTextProcessor::handleMarkdown()
|
|||||||
|
|
||||||
|
|
||||||
if (!hasAlreadyProcessedMarkdown) {
|
if (!hasAlreadyProcessedMarkdown) {
|
||||||
std::sort(codeBlockPositions.begin(), codeBlockPositions.end(), std::greater<>());
|
std::sort(codeBlockPositions.begin(), codeBlockPositions.end(), [](const QPair<int, int> &a, const QPair<int, int> &b) {
|
||||||
|
return a.first > b.first;
|
||||||
|
});
|
||||||
|
|
||||||
int lastIndex = doc->characterCount() - 1;
|
int lastIndex = doc->characterCount() - 1;
|
||||||
for (const auto &pos : codeBlockPositions) {
|
for (const auto &pos : codeBlockPositions) {
|
||||||
|
Loading…
Reference in New Issue
Block a user