Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intermittent issues (Vim in ConEmu; ref: [conemu_ml:316]) #1336

Closed
Maximus5 opened this issue Jul 31, 2015 · 18 comments
Closed

Intermittent issues (Vim in ConEmu; ref: [conemu_ml:316]) #1336

Maximus5 opened this issue Jul 31, 2015 · 18 comments

Comments

@Maximus5
Copy link
Owner

Originally reported on Google Code with ID 1336

Required information!
OS version: Win7 Ultimate 64 bit   SP 1
ConEmu version: 131026 x64
Far version (if you are using Far Manager): N/A

*Bug description*

The 256 color support for running Vim inside ConEmu looks great -- comparing the same
colorscheme inside ConEmu vim and inside gvim, the effect looks better inside ConEmu.
 However:

a) Vim's status bar is a horizontal line of text at the bottom of Vim.  Text on some
portion of Vim's status bar look OK but text on other portions is invisible.

b) For some lines, horizontal colored bands appear starting from end of line and going
to the right edge.

c) For some lines, horizontal under-score appear starting from end of line and going
to the right edge. 

These issues are not always present;  sometimes they show up, and doing some work such
as issuing :e! (reload buffer) command or Ctrl-F Ctrl-B (page forward, page backward)
commands will make the issue go away.  But issue can come back after some time. 


*Steps to reproduction*

0) Files in attached vim_in_conemu_issues.7z:

        ConEmu.xml
        display_issues_for_vim_in_conemu.png
        good_display.png
        readme.txt
        test_vim_in_conemu.txt
        vimfiles/colors/calmar256_dark_new.vim
        vimfiles/colors/rastafari.vim
        vimrc_for_test_vim_in_conemu.vim

1) vim.exe used is the one from vim.org.

2) Colorscheme files are in vimfiles/colors/

3) Command (all of the following in one line):

       c:\opt\vim\vim74\vim.exe
              -cur_console:h0
              -u vimrc_for_test_vim_in_conemu.vim
                 test_vim_in_conemu.txt

4) Expected display:  good_display.png

5) Bad display:  display_issues_for_vim_in_conemu.png

6) To attempt to reproduce the display issues, put cursor
   in bottom portion of the file test_vim_in_conemu.txt
   and type a few commands to open and close folds (zM,
   zR, zc, zo).


Reported by sgovindachar@yahoo.com on 2013-11-15 04:11:15


- _Attachment: [vim_in_conemu_issues.7z](https://storage.googleapis.com/google-code-attachments/conemu-maximus5/issue-1336/comment-0/vim_in_conemu_issues.7z)_
@Maximus5
Copy link
Owner Author

Check build 140114

Reported by ConEmu.Maximus5 on 2014-01-15 00:18:07

@Maximus5
Copy link
Owner Author

Yesterday, I tried 140114a but the issue is still present.  Am planning to provide a
more detailed response over the weekend.  Thanks.

Reported by sgovindachar@yahoo.com on 2014-01-17 03:48:49

@Maximus5
Copy link
Owner Author

140117. One more ANSI bug was fixed.

Reported by ConEmu.Maximus5 on 2014-01-17 22:50:44

@Maximus5
Copy link
Owner Author


Tried 140117 -- there are still two bugs.  Material needed to reproduce the bugs is
attached to this comment (attachment has same name as previous attachment, but readme.txt
and vimrc_for_test_vim_in_conemu.vim are slightly different from version in previous
attachment).  Also, here's a video demonstrating the bugs: http://screencast.com/t/HUpMZRIruce
.    


*Updated steps to reproduce the bugs*

0) Files in this directory:

        ConEmu.xml
        display_issues_for_vim_in_conemu.png
        good_display.png
        readme.txt
        test_vim_in_conemu.txt
        vimfiles/colors/calmar256_dark_new.vim
        vimfiles/colors/rastafari.vim
        vimrc_for_test_vim_in_conemu.vim

1) vim.exe used is the one from vim.org.

2) Colorscheme files are in vimfiles/colors/

3) Command (all of the following in one line):

       c:\opt\vim\vim74\vim.exe 
              -cur_console:h0 
              -u vimrc_for_test_vim_in_conemu.vim
              --noplugin
                test_vim_in_conemu.txt

4) See (5) below and video demonstrating the bug at:
   http://screencast.com/t/HUpMZRIruce

5) Keys steps to reproduce bug:
   Do step (3) above.
   Type as follows
   zRG
   k [a few time to get to middle of a paragraph]
   zc
   k [a few times to get to another para] 
   zc
   l [observe bug: green lines]
   :tabnew
   gtgtgt
   k [to scroll up]
   j [to scroll down;  observe bug:  green stripes]



Reported by sgovindachar@yahoo.com on 2014-01-18 03:47:29


- _Attachment: [vim_in_conemu_issues.7z](https://storage.googleapis.com/google-code-attachments/conemu-maximus5/issue-1336/comment-4/vim_in_conemu_issues.7z)_

@Maximus5
Copy link
Owner Author

PS:  The first bug mentioned in the video is "lines" -- by "lines" I do _not_ mean the
underscore of words in the text -- underscore is OK;  the bug is the lines that show
up extending from the right of the paragraph to the right edge of the screen.

Reported by sgovindachar@yahoo.com on 2014-01-18 05:54:43

@Maximus5
Copy link
Owner Author

Check this ConEmuHk patch
http://www.conemu.ru/load/0-0-0-1-20

Reported by ConEmu.Maximus5 on 2014-01-20 07:14:05

@Maximus5
Copy link
Owner Author

Link has ConEmuHk.dll, but not ConEmuHk64.dll.  So far, I have run conemu64 -- is there
a patched ConEmuHk64.dll?  Or do you want me to try the 32 bit version?  

Reported by sgovindachar@yahoo.com on 2014-01-20 07:30:03

@Maximus5
Copy link
Owner Author

Your vim is 32-bit, so only 32-bit ConEmuHk must be patched.

Reported by ConEmu.Maximus5 on 2014-01-20 07:34:59

@Maximus5
Copy link
Owner Author

Extended lines have gone away -- good!  However, gold-text and green-bars issue still
remains -- see attached image gold_text__green_bars.png (Word libero being in gold
is OK;  but in buggy display, entire lines of text are in gold.)  Observation:  green
bars are on the background -- when I do line-by-line scrolling with j or k key, the
green bars remain stationary, and different lines of text come on top of green bar.
 The text of whichever line is on top of green bar shows up as gold.  When the blank
line that is between paragraphs comes on top of green bar, entire bar is just green
(rather than black background color). 

Reported by sgovindachar@yahoo.com on 2014-01-21 01:56:16


- _Attachment: gold_text__green_bars.png
![gold_text__green_bars.png](https://storage.googleapis.com/google-code-attachments/conemu-maximus5/issue-1336/comment-9/gold_text__green_bars.png)_

@Maximus5
Copy link
Owner Author

Another observation:  Vim's status line is a horizontal line close to the bottom of
the Vim window.  The syntax coloring for this line is green with gold text.  So it
looks like the green bars with gold text are replications of the syntax of Vim's status
line.

Reported by sgovindachar@yahoo.com on 2014-01-21 05:14:18

@Maximus5
Copy link
Owner Author

Can't reproduce that. What are you doing?

Reported by ConEmu.Maximus5 on 2014-01-21 07:28:20

@Maximus5
Copy link
Owner Author


Please extract attachment to comment dated Jan 17.  This has updated vimrc and updated
instructions.  The bug shows up after the :tabnew gtgt are issued and one does j and
k commands.   

Reported by sgovindachar@yahoo.com on 2014-01-21 15:08:36

@Maximus5
Copy link
Owner Author

1) Was this video from comment of Jan 17 helpful or totally useless?: http://screencast.com/t/HUpMZRIruce

2) Even simplified steps to reproduce the issue:

a) Extract attachment of Jan 17
b) start conemu64
c) Inside conemu64, cd to vim_in_conemu_isues directory from (a).
d) Issue following command:  c:\opt\vim\vim74\vim.exe -cur_console:h0 -u vimrc_for_test_vim_in_conemu.vim
 --noplugin  test_vim_in_conemu.txt
e) Inside Vim, issue following command.  Hit carriage return only for <cr>, otherwise,
do not hit carriage return:

   zR
   G
   :tabnew<cr>
   gtgtgt

   Keep pressing the 'k' key till text scrolls all the way to the top
   Then keep pressing the 'j' key to start scrolling down.  Pretty soon, bug will show
up.



Reported by sgovindachar@yahoo.com on 2014-01-21 15:53:00

@Maximus5
Copy link
Owner Author

OK, I see

Reported by ConEmu.Maximus5 on 2014-01-21 15:58:49

@Maximus5
Copy link
Owner Author

140122

Reported by ConEmu.Maximus5 on 2014-01-22 22:32:46

@Maximus5
Copy link
Owner Author

Issues resolved!  Thank you very much.

Reported by sgovindachar@yahoo.com on 2014-01-23 03:18:12

@Maximus5
Copy link
Owner Author

Oops!  I did not test properly.  Resizing the window messes up everything.  Steps to
reproduce: 

a) Extract attachment of Jan 17
b) start conemu64
c) Inside conemu64, cd to vim_in_conemu_isues directory from (a).
d) Issue following command:  c:\opt\vim\vim74\vim.exe -cur_console:h0 -u vimrc_for_test_vim_in_conemu.vim
 --noplugin  test_vim_in_conemu.txt
e) Resize the window -- everything gets messed up really bad.

Would you like me to start a new bug or continue with this one?


Reported by sgovindachar@yahoo.com on 2014-01-24 03:36:32

@Maximus5
Copy link
Owner Author

Due to limitations of current TrueColor implementation, console application must redraw
its screen after resize. For example, look at Far Manager...

If future, TrueColor support will be completely rewritten (this is in my road map).

So, your last comment is about another issue, but I don't think you need to create
it ;)
This is a "feature" ATM...

Reported by ConEmu.Maximus5 on 2014-01-24 06:41:46

  • Status changed: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant