From 42f708422c9a1467efb689442f10dd36d840dabc Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Thu, 30 Jan 2020 16:12:23 +0100 Subject: [PATCH] Fixes #89571: Use `word-wrap: break-word` when computing line breaks --- src/vs/editor/browser/view/domLineBreaksComputer.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vs/editor/browser/view/domLineBreaksComputer.ts b/src/vs/editor/browser/view/domLineBreaksComputer.ts index ab567c36c9fe6..600f303335e4d 100644 --- a/src/vs/editor/browser/view/domLineBreaksComputer.ts +++ b/src/vs/editor/browser/view/domLineBreaksComputer.ts @@ -111,6 +111,7 @@ function createLineBreaks(requests: string[], fontInfo: FontInfo, tabSize: numbe containerDomNode.style.position = 'absolute'; containerDomNode.style.top = '10000'; + containerDomNode.style.wordWrap = 'break-word'; document.body.appendChild(containerDomNode); let range = document.createRange();