Hi mattn and all,

2015/5/25 Mon 13:15:09 UTC+9 mattn wrote:
> http://go-gyazo.appspot.com/07b65df3b2cdd94b.png
> 
> Since vim.exe uses ReadConsoleOutputA/WriteConsoleOutputA, wide characters 
> are not remained on cmd.exe after exiting. Below is a patch to fix this.
> On win9x, ReadConsoleOutputW/WriteConsoleOutputW doesn't work correctly, this 
> patch check the OS is NT or later.
> 
> https://gist.github.com/mattn/5aed3a57d3995e31a377

Now I found a solution for this problem!
Mattn's patch restores the console buffer by calling WriteConsoleOutputW once,
but it causes a problem because buffer positions are based on ANSI character
count.  We need to call ReadConsoleOutputW several times to save the console
buffer, so it's natural to call WriteConsoleOutputW the same times, and this
does solve the problem.

Please check the following patch:
https://bitbucket.org/k_takata/vim-ktakata-mq/src/378b825971eb7de7692cad5072001c41cab54b29/restore-unicode-chars.patch

Of course, this patch doesn't use CreateConsoleScreenBuffer, so this doesn't
cause the troubles caused by the patch 7.4.851.


Regards,
Ken Takata

-- 
-- 
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.

Raspunde prin e-mail lui