Patch 8.0.1632
Problem:    In a terminal dump NUL and space considered are different,
            although they are displayed the same.
Solution:   When encountering NUL handle it like space.
Files:      src/terminal.c


*** ../vim-8.0.1631/src/terminal.c      2018-03-21 22:27:54.462834961 +0100
--- src/terminal.c      2018-03-23 22:05:11.882830796 +0100
***************
*** 3396,3401 ****
--- 3396,3410 ----
  
            for (i = 0; i < VTERM_MAX_CHARS_PER_CELL; ++i)
            {
+               int c = cell.chars[i];
+               int pc = prev_cell.chars[i];
+ 
+               /* For the first character NUL is the same as space. */
+               if (i == 0)
+               {
+                   c = (c == NUL) ? ' ' : c;
+                   pc = (pc == NUL) ? ' ' : pc;
+               }
                if (cell.chars[i] != prev_cell.chars[i])
                    same_chars = FALSE;
                if (cell.chars[i] == NUL || prev_cell.chars[i] == NUL)
*** ../vim-8.0.1631/src/version.c       2018-03-23 20:37:41.023286753 +0100
--- src/version.c       2018-03-23 22:06:25.506350670 +0100
***************
*** 768,769 ****
--- 768,771 ----
  {   /* Add new patch number below this line */
+ /**/
+     1632,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
39. You move into a new house and decide to Netscape before you landscape.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui