I wrote:
> Dominique wrote: > > > This PR improves tests in src/testdir/test_termcodes.vim: > > > > - Added helper functions to emit terminal escape codes to simplify tests > > and to make it easier to support other values of 'ttymouse' > > - Test_xterm_mouse_drag_statusline now done for 'ttymouse' values xterm & > > sgr > > - Added test for dragging statusline > > This appears to pass on Travis, but if fails for me. It looks like it > depends on the terminal. With my normal setup I get: > > Found errors in Test_xterm_mouse_drag_statusline(): > Caught exception in Test_xterm_mouse_drag_statusline(): Vim(call):E348: No > string under cursor @ function > RunTheTest[40]..Test_xterm_mouse_drag_statusline[13]..MouseLeftClick[1]..TerminalEscapeCode, > line 2 > > > No idea why it did that. When using a newly started xterm the test > passes. But when I make it taller it fails: > > Found errors in Test_xterm_mouse_drag_statusline(): > function RunTheTest[40]..Test_xterm_mouse_drag_statusline line 16: Expected 2 > but got 1 > function RunTheTest[40]..Test_xterm_mouse_drag_statusline line 17: Expected > 96 but got 97 > > > It appears to start when the terminal is 97 lines high. It's because the encoded row becomes 128, which in utf-8 is encoded as two bytes. And xterm expects one byte. I can fix that... -- If VIM were a woman, I'd marry her. Slim, organized, helpful and beautiful; what's not to like? --David A. Rogers /// 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.
