hishamhm / dit

A console text editor for Unix systems that you already know how to use
http://hisham.hm/dit
GNU General Public License v2.0
141 stars 9 forks source link

strange output corruption #30

Open davidak opened 6 years ago

davidak commented 6 years ago

when there are more than 6 same characters in one line, only the first character is displayed.

https://asciinema.org/a/ibiDlhLSTUIjIsqGogxQ9oESJ

I noticed that the output get's corrupted when i used PAGE-UP und PAGE-DOWN to navigate through files. Then sometimes characters stay on the display where other should be...

https://asciinema.org/a/V0gEYXLSzOQuJ05PtFicGPCAk

visible at 0:32 and 3:56.


dit 0.5 Pantheon Terminal NixOS 18.03.132275.2352d46904d (Impala)

Again, not reproducible with GNOME Terminal.

davidak commented 6 years ago

Here i have a (private) file where dit don't show every line. Similar behavior in both Terminals.

screenshot from 2018-05-10 05-23-26

left: dit, right: vim

hishamhm commented 6 years ago

I've had htop users in the past who had similar weird problems when their libncurses version did not match the version of their ncurses headers. Do you happen to have multiple ncurses versions installed? There may be conflicts with the OS-provided one.

davidak commented 6 years ago

i think that shouldn't happen, but i ask...

could it be a problem that we use ncurses 6.0-20171125? maybe we need a fix like this? https://github.com/NixOS/nixpkgs/commit/8afcfb2bb6681c56ecf21e056d91d6748d953997

hishamhm commented 6 years ago

That's probably not it: I run ncurses 6.0 here.