lem icon indicating copy to clipboard operation
lem copied to clipboard

Broken floating windows in ncurses

Open t-sin opened this issue 1 year ago • 7 comments

All floating windows are broken in ncurses like this:

image

I checked my GNOME terminal settings about ambiguous-width characters but it's same as default.

Environment

$ lem -- --version
lem 2.2.0-7f7c33da (X86-64-timberwolf)
$ uname -a
Linux timberwolf 6.5.0-41-generic #41-Ubuntu SMP PREEMPT_DYNAMIC Mon May 20 15:55:15 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

t-sin avatar Jun 09 '24 10:06 t-sin

The workaround is as follows.

(setf lem-lisp-mode/completion:*documentation-popup-gravity* :vertically-adjacent-window)

cxxxr avatar Jun 09 '24 12:06 cxxxr

Thank you! I wrote that form into ~/.lem/init.lisp and completion window works normally!

t-sin avatar Jun 09 '24 13:06 t-sin

The workaround is as follows.

(setf lem-lisp-mode/completion:*documentation-popup-gravity* :vertically-adjacent-window)

Is this something I broke that needs to be undone?

garlic0x1 avatar Jun 09 '24 23:06 garlic0x1

If it takes a long time to fix, it might be better to revert once.

cxxxr avatar Jun 10 '24 04:06 cxxxr

@garlic0x1 Would you like to change the default value?

cxxxr avatar Jul 15 '24 07:07 cxxxr

I can also replicate this in SDL2 version when I set the flag to what it was before. I think there's a bug in how the sizes and positions are calculated. This only occurs at smaller screen sizes.

I think a more sophisticated approach is needed here. I have some thoughts on this if I can find some time to explore them.

cianoc avatar Aug 06 '25 15:08 cianoc

If you want @cxxxr you can assign this to me.

cianoc avatar Aug 06 '25 20:08 cianoc