mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-18 17:02:06 +03:00
Fix info box placement when too wide
This commit is contained in:
parent
b5ccc8bc73
commit
bfbee3c71e
@ -666,7 +666,7 @@ static CharCoord compute_pos(CharCoord anchor, CharCoord size,
|
|||||||
pos.line = max(0_line, anchor.line - size.line);
|
pos.line = max(0_line, anchor.line - size.line);
|
||||||
}
|
}
|
||||||
if (pos.column + size.column >= scrsize.column)
|
if (pos.column + size.column >= scrsize.column)
|
||||||
pos.column = max(0_char, anchor.column - size.column+1);
|
pos.column = max(0_char, scrsize.column - size.column);
|
||||||
|
|
||||||
if (opt_window_to_avoid)
|
if (opt_window_to_avoid)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user