You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the develop branch (as of commit 4495cee), trying to use Ctrl-s, Ctrl-v to view a message that contains a code block that is long enough to wrap around to another line (cf. ed71b61) will cause Matterhorn to crash and print the following error:
matterhorn: tried to embed an infinite-width or infinite-height widget in 'Both' type viewport ViewMessageArea
CallStack (from HasCallStack):
error, called at src/Brick/Widgets/Core.hs:1048:25 in brick-0.55-95152ca5b78b04408fd9576ec8ce5cc5cbd676d74ca933cd4a8a944d2b87e866:Brick.Widgets.Core
The text was updated successfully, but these errors were encountered:
…666)
This change exposes control over when to wrap non-highlighted code
blocks via the MessageData field mdWrapNonhighlightedCodeBlocks. We need
this because in the message view window we never want to line-wrap such
blocks, but everywhere else, we do. This change ensures that the
wrapping is done when desired elsewhere, but not in the message view
window case.
As a side note, this change is the latest in a long series that show how
the Draw.RichText parameter passing is getting out of hand. It is time
for a reader monad to tuck those things away.
On the
develop
branch (as of commit 4495cee), trying to useCtrl-s, Ctrl-v
to view a message that contains a code block that is long enough to wrap around to another line (cf. ed71b61) will cause Matterhorn to crash and print the following error:The text was updated successfully, but these errors were encountered: