mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 9.0.0364: clang static analyzer gives warnings
Problem: Clang static analyzer gives warnings. Solution: Avoid the warnings. (Yegappan Lakshmanan, closes #11043)
This commit is contained in:
committed by
Bram Moolenaar
parent
b18b496997
commit
c99e182e1f
@@ -1282,11 +1282,11 @@ op_tilde(oparg_T *oap)
|
||||
#ifdef FEAT_NETBEANS_INTG
|
||||
if (netbeans_active() && one_change)
|
||||
{
|
||||
char_u *ptr = ml_get_buf(curbuf, pos.lnum, FALSE);
|
||||
char_u *ptr;
|
||||
|
||||
netbeans_removed(curbuf, pos.lnum, bd.textcol,
|
||||
(long)bd.textlen);
|
||||
// get the line again, it may have been flushed
|
||||
// get the line now, it may have been flushed
|
||||
ptr = ml_get_buf(curbuf, pos.lnum, FALSE);
|
||||
netbeans_inserted(curbuf, pos.lnum, bd.textcol,
|
||||
&ptr[bd.textcol], bd.textlen);
|
||||
|
Reference in New Issue
Block a user