From dfb18f808927c4b4cd17d94d68a673d8d51d5308 Mon Sep 17 00:00:00 2001 From: "Ryan C. Scott" Date: Thu, 17 Mar 2022 12:24:59 -0700 Subject: [PATCH] Fixed line width calculation for helm source .Was resulting in negative values on long entries and the resulting error was being suppressed by `ignore-errors' in the source --- helm-org-ql.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm-org-ql.el b/helm-org-ql.el index feac1c36..55691c80 100644 --- a/helm-org-ql.el +++ b/helm-org-ql.el @@ -206,7 +206,7 @@ WINDOW-WIDTH should be the width of the Helm window." ;; I'd prefer not to do. Maybe I should add a feature to `org-ql' to ;; call a setup function in a buffer before running queries. (let* ((prefix (concat (buffer-name) ":")) - (width (- window-width (length prefix))) + (width (max 0 (- window-width (length prefix)))) (heading (org-get-heading t)) (path (-> (org-get-outline-path) (org-format-outline-path width nil "")