Patch 8.1.1708
Problem: Coverity warns for using uninitialized variable.
Solution: Set the start col when col is set.
Files: src/beval.c
*** ../vim-8.1.1707/src/beval.c 2019-07-17 20:01:43.049603900 +0200
--- src/beval.c 2019-07-17 21:30:38.886062669 +0200
***************
*** 72,77 ****
--- 72,78 ----
}
col = vcol2col(wp, lnum, col);
+ scol = col;
if (VIsual_active
&& wp->w_buffer == curwin->w_buffer
***************
*** 95,100 ****
--- 96,102 ----
lbuf = vim_strnsave(lbuf + spos->col, len);
lnum = spos->lnum;
col = spos->col;
+ scol = col;
}
else
{
*** ../vim-8.1.1707/src/version.c 2019-07-17 21:27:48.826903797 +0200
--- src/version.c 2019-07-17 21:31:34.209789127 +0200
***************
*** 779,780 ****
--- 779,782 ----
{ /* Add new patch number below this line */
+ /**/
+ 1708,
/**/
--
Any sufficiently advanced technology is indistinguishable from magic.
Arthur C. Clarke
Any sufficiently advanced bug is indistinguishable from a feature.
Rich Kulawiec
/// 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/201907171932.x6HJWTfi018563%40masaka.moolenaar.net.
For more options, visit https://groups.google.com/d/optout.