From 0c03ffa13396ae6489bec833a0c9ee623e0f853c Mon Sep 17 00:00:00 2001 From: Andy Stewart Date: Tue, 27 Jun 2023 22:24:20 +0800 Subject: [PATCH] Remove unused condition in acm-frame-adjust-frame-pos --- acm/acm-frame.el | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/acm/acm-frame.el b/acm/acm-frame.el index c4b4e673f8..abc9846f76 100644 --- a/acm/acm-frame.el +++ b/acm/acm-frame.el @@ -326,13 +326,11 @@ influence of C1 on the result." ("bottom-right" (set-frame-position frame (- main-window-width frame-width) (- main-window-height frame-height))) ("point" - (when (and (> frame-right-edge main-window-right-limit) - (> (- main-window-x main-window-width) 0)) + (when (> frame-right-edge main-window-right-limit) (set-frame-position frame (- (+ main-window-x main-window-width) frame-width margin) frame-y)) - (when (and (> frame-bottom-edge main-window-bottom-limit) - (> (- main-window-y main-window-height) 0)) + (when (> frame-bottom-edge main-window-bottom-limit) (set-frame-position frame frame-x (- (+ main-window-y main-window-height) frame-height margin)