Hi lists,

Quite some time ago, I proposed 'ambiwidth' auto-detection. it was introduced 
by 7.3.859.
https://groups.google.com/d/topic/vim_dev/CuwxGqHMlUQ/discussion

As you know, this feature caused many problems, most of bug reporter said
that vim launches with REPLACE mode.

I wrote a quick fix for this(7.3.863), but it was not proper solution.
https://groups.google.com/d/topic/vim_dev/Mxm3Mw-2QpA/discussion

Patch 7.4.207 was also not a correct solution.
https://groups.google.com/d/topic/vim_dev/uQgBZoPGYxg/discussion
This additionally causes another REPLACE mode problem by another reason
on some terminals such as dvtm/jfbterm, so they have odd glitch of reporting
off-by-one cursor position response. I reproduced that problem on dvtm-0.8.

I think the patch set of 7.4.305, 7.4.307, 7.4.359 should be reverted.
https://groups.google.com/d/topic/vim_dev/BQ3Kr3io1_A/discussion
https://groups.google.com/d/topic/vim_dev/FCz4E3TOKRo/discussion
https://groups.google.com/d/topic/vim_dev/iX6Z7cpXKBw/discussion
They certainly resolve the problem in main case, but it cause a side effect
which disables termresponse in case of ttym=dec/pterm.
In addition, above patches are so complicated. I propose the following solution 
instead of them.

https://gist.github.com/saitoha/7149d02fb524ac2c1b90#file-correct-termresponse-behavior-with-decmouse-diff-L159
(The hunk @@ -4212,10 +4170,16 @@ in src/term.c)

The attached patch considers above matters.
I tested it under many environment including the following terminals
and confirmed that this patch solves above-referenced side effects.

- dvtm
- jfbterm
- QNX perm
- xterm compiled with —enable-dec-locator

-- Hayaki Saito

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Attachment: correct-termresponse-behavior.diff
Description: Binary data

Raspunde prin e-mail lui