unixwork / xnedit

A fast and classic X11 text editor, based on NEdit, with full unicode support and antialiased text rendering.
Other
83 stars 11 forks source link

weird row count behavior in editor window #125

Open lersek opened 11 months ago

lersek commented 11 months ago

This is with xnedit built at commit b1c382a ("mark iconified windows in the window menu"), against Motif 2.3.8.

In ~/.Xresources, I have nedit.textRows: 63. I observe the following behavior:

Contrast with:

So, basically, two avenues to the same bug (incorrect number of rows), even though in the second reproducer, the initial appearance, together with the tab bar, is correct (61 lines).

Using the same motif and xnedit binaries, the above symptoms do not show up (and everything is correct), on a different computer. The differences are that

I expect this isn't actually an xnedit or motif bug, but a problem with something "underneath". Where should I look? Thanks.

lersek commented 11 months ago

... to clarify, on the good (RHEL-7) computer, the first reproducer reduces the number of lines by two, when b.txt is opened, and the second reproducer does not increase the number of lines by two when the focus is moved elsewhere. All in all, the good setup maintains the line count in the textedit area such that the tab bar (if any) plus the line count precisely fill up my screen height, under all circumstances.

unixwork commented 11 months ago

I'm not sure, I guess the behavior depends on the window manager. I will try to reproduce this with icewm.