gphalkes / tilde

The Tilde text editor
395 stars 21 forks source link

Cursor position response ends up in the text? #27

Closed xparq closed 5 years ago

xparq commented 6 years ago

What OS are you using (including version): Win10 What terminal were you running Tilde on when you ran into the issue: xterm-256color, or linux (on WSL/Ubuntu Xenial)

Please paste the result of running 'tilde --version':

Tilde version 0.4.0
Copyright (c) 2011-2018 G.P. Halkes
Tilde is licensed under the GNU General Public License version 3
Library versions:
  libt3config 0.2.11
  libt3highlight 0.4.5
  libt3key (through libt3widget) 0.2.8
  libt3widget 0.6.2
  libt3window 0.3.0
  libtranscript 0.3.3
  libunistring 0.9.?

Please describe the problem. If possible, include the action you performed, the expected result and the actual result in the description.

git commit opens tilde with [2;3R (sometimes doubled) at the beginning of the edited text (the commit message).

gphalkes commented 6 years ago

Thank you for your bug report. I am having trouble replicating the problem though. Can you perhaps explain a bit more about the specific setup you are using?

xparq commented 6 years ago

Well, it's just about the vanilla Ubuntu of "Windows Subsystem for Linux" on Windows 10. I installed tilde as per your instructions (from your apt repo), and I also have git 2.7.4 here.

But now I see it's nothing to with git, just invoking tilde manually is enough. Which is strange, as it did not do that previously:

tilde-curpos-bug

xparq commented 6 years ago

OK, it seems to be Midnight Commander (4.8.15) underneath! :-o When I work from mc, the garbage is there. When I don't, it's all right...

(Browsing for relevant mc bug reports now; have not immediately found the one yet... I've seen lots of locale-dependent problems, and indeed, I'm on a UTF-8 locale, too. But the "classic" workarounds of adjusting the locale vars before running mc (like LC_ALL=C mc or LANG=C mc) did not help here.)

gphalkes commented 6 years ago

That is a little odd, but looks indeed like an mc bug. However, on my Ubuntu machine with mc 4.8.19 I'm unable to replicate this, making it difficult for me to diagnose the problem.

magiblot commented 6 years ago

This seems to be related: https://unix.stackexchange.com/questions/307906/midnight-commander-confused-by-mouse-wheel-use