From cb5a67ba2031725880881ade5bd8fc8a9ef5802e Mon Sep 17 00:00:00 2001 From: Nicolas Varrot Date: Sat, 14 Feb 2026 00:45:55 +0000 Subject: [PATCH] fix: disable syntax highlight by default (cursor desync issue) --- src/components/ChatInput.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ChatInput.tsx b/src/components/ChatInput.tsx index da6bfc5..927e559 100644 --- a/src/components/ChatInput.tsx +++ b/src/components/ChatInput.tsx @@ -92,7 +92,7 @@ export function ChatInput({ onSend, onAbort, isGenerating, disabled, sessionKey const [files, setFiles] = useState([]); const [isDragOver, setIsDragOver] = useState(false); const [showPreview, setShowPreview] = useState(() => localStorage.getItem('pinchchat-md-preview') === '1'); - const [highlightEnabled, setHighlightEnabled] = useState(() => localStorage.getItem('pinchchat-syntax-hl') !== '0'); + const [highlightEnabled, setHighlightEnabled] = useState(() => localStorage.getItem('pinchchat-syntax-hl') === '1'); const textareaRef = useRef(null); const fileInputRef = useRef(null);