Yegappan wrote:

> In the PR 5296, I have added some tests for the register related
> functionality. One of the test fails in the normal build but passes
> in the huge build. The test is below:
> 
>   new
>   let @" = 'xyz'
>   set virtualedit=all
>   call append(0, "a\tb")
>   call cursor(1, 2, 6)
>   normal p
>   call assert_equal("a\txyzb", getline(1))
> 
> It looks like in the normal build, the tab character is expanded
> when the text is pasted. But this doesn't happen in the huge build.
> 
> Is this a bug or am I missing something?
> 
> The passing huge build log is at:
> 
> https://travis-ci.org/vim/vim/jobs/619155561
> 
> The failing normal build log is at:
> 
> https://travis-ci.org/vim/vim/jobs/619155568
> 
> The PR is at:
> 
> https://github.com/vim/vim/pull/5296

It's because of the vartabs feature, it computes the tabstop position
correctly.  Code is in do_put(), at line 1679.

I managed to fix the code, I'll include the tests then.


-- 
hundred-and-one symptoms of being an internet addict:
165. You have a web page burned into your glasses

 /// 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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/201912011716.xB1HGsTE009020%40masaka.moolenaar.net.

Raspunde prin e-mail lui