Skip to content

Commit 6b79a6d

Browse files
authored
Merge pull request #60 from fiendish/patch-2
Don't reposition during check unless out of bounds
2 parents 259228e + ddd85e2 commit 6b79a6d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lua/movewindow.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -274,14 +274,14 @@ local function make_check_map_position_handler (mwi)
274274
mwi.window_top > GetInfo (280) - mwi.margin then
275275
mwi.window_mode = miniwin.pos_center_right
276276
mwi.window_flags = 0
277+
278+
WindowPosition (win,
279+
mwi.window_left,
280+
mwi.window_top,
281+
mwi.window_mode,
282+
mwi.window_flags)
277283
end -- if not visible
278284

279-
WindowPosition (win,
280-
mwi.window_left,
281-
mwi.window_top,
282-
mwi.window_mode,
283-
mwi.window_flags)
284-
285285
end -- check_map_position
286286

287287
end -- make_check_map_position_handler

0 commit comments

Comments
 (0)