Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrap text in patch-editor "Info and properties" pane #79

Open
andersvi opened this issue Sep 21, 2023 · 1 comment
Open

wrap text in patch-editor "Info and properties" pane #79

andersvi opened this issue Sep 21, 2023 · 1 comment

Comments

@andersvi
Copy link
Member

Hi.

The infotext does not wrap in patch-editor "Info and properties" pane

@andersvi
Copy link
Member Author

andersvi commented Sep 21, 2023

I think this fixes it:

diff --git a/src/visual-language/patch/patch-editor.lisp b/src/visual-language/patch/patch-editor.lisp
index d1dc1bc2..62cad2dd 100644
--- a/src/visual-language/patch/patch-editor.lisp
+++ b/src/visual-language/patch/patch-editor.lisp
@@ -1782,10 +1782,11 @@ The function and class reference accessible from the \"Help\" menu, or the \"Cla
                (list
                 (let* ((doc (default-editor-help-text (editor self)))
                        (line-h (cadr (multiple-value-list (om-string-size "ABC" text-font))))
-                       (n-lines (length (om-string-wrap doc def-w text-font))))
-                  (om-make-di 'om-multi-text
+                       (doc-wrapped (om-string-wrap doc def-w text-font))
+		       (n-lines (length doc-wrapped)))
+		  (om-make-di 'om-multi-text
                               :size (om-make-point def-w (* line-h (+ 2 n-lines)))
-                              :text doc
+                              :text doc-wrapped
                               :fg-color (om-def-color :dark-gray)
                               :font text-font)
                   )))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant