Because the zindex of floating window is 5, the bottom border of the windows will be covered by the command line if the bottom border overlaps with the command line (#86).
Neovim automatically adjusts the floating window dimension if the giving col/row/height/width make the floating window exceed the border of the editor. If the row + height of the floating window is equal to or greater than the editor height, the bottom border will overlap with the command line.
The PR restricts the floating window bottom border to editor.height - 1. Therefore, the bottom border can be correctly displayed.
Another solution is to increase the zindex of the floating window. However, command line will be covered by the bottom border. Users cannot see what they typed.
Because the
zindex
of floating window is 5, the bottom border of the windows will be covered by the command line if the bottom border overlaps with the command line (#86). Neovim automatically adjusts the floating window dimension if the giving col/row/height/width make the floating window exceed the border of the editor. If therow + height
of the floating window is equal to or greater than the editor height, the bottom border will overlap with the command line.The PR restricts the floating window bottom border to
editor.height - 1
. Therefore, the bottom border can be correctly displayed.Another solution is to increase the
zindex
of the floating window. However, command line will be covered by the bottom border. Users cannot see what they typed.