Problem: Some conditions are always true.
Solution: Remove the useless conditions. (closes #9993)
* For --remote-wait: Wait until the server did edit each
* file. Also detect that the server no longer runs.
*/
- if (ret >= 0 && argtype == ARGTYPE_EDIT_WAIT)
+ if (argtype == ARGTYPE_EDIT_WAIT)
{
int numFiles = *argc - i - 1;
int j;
{
draw_state = WL_BRI;
// if need_showbreak is set, breakindent also applies
- if (wp->w_p_bri && n_extra == 0
- && (row != startrow || need_showbreak)
+ if (wp->w_p_bri && (row != startrow || need_showbreak)
# ifdef FEAT_DIFF
&& filler_lines == 0
# endif
if (VIsual_active)
{
- if (VIsual_active
- && (VIsual_mode != wp->w_old_visual_mode
- || type == INVERTED_ALL))
+ if (VIsual_mode != wp->w_old_visual_mode
+ || type == INVERTED_ALL)
{
// If the type of Visual selection changed, redraw the whole
// selection. Also when the ownership of the X selection is
if (curbufIsChanged())
#endif
{
- if (other)
- --no_wait_return;
+ --no_wait_return;
no_write_message();
retval = GETFILE_NOT_WRITTEN; // file has been changed
goto theend;
break;
}
- if (!ignore && checkitem != NULL)
+ if (checkitem != NULL)
{
int r = checkitem(context, item);
int len = (*mb_ptr2len)(str);
// For multi-byte characters check for an illegal byte.
- if (has_mbyte && MB_BYTE2LEN(*str) > len)
+ if (MB_BYTE2LEN(*str) > len)
{
transchar_nonprint(curbuf, buf, c);
*sp = str + 1;
// Make sure that coladd is not more than the char width.
// Not for the last character, coladd is then used when the cursor
// is actually after the last character.
- if (win->w_cursor.col + 1 < len && win->w_cursor.coladd > 0)
+ if (win->w_cursor.col + 1 < len)
{
int cs, ce;
changed_lines(oap->start.lnum, oap->start.col, oap->end.lnum + 1,
0L);
#ifdef FEAT_NETBEANS_INTG
- if (netbeans_active() && did_change)
+ if (netbeans_active())
{
char_u *ptr;
int count;
if (sign->se_lnum < line1)
continue;
new_lnum = sign->se_lnum;
- if (sign->se_lnum >= line1 && sign->se_lnum <= line2)
+ if (sign->se_lnum <= line2)
{
if (amount != MAXLNUM)
new_lnum += amount;
// the cursor.
if (dir == BACKWARD
|| lnum != wp->w_cursor.lnum
- || (lnum == wp->w_cursor.lnum
- && (wrapped
- || (colnr_T)(curline ? p - buf + len
+ || (wrapped
+ || (colnr_T)(curline ? p - buf + len
: p - buf)
- > wp->w_cursor.col)))
+ > wp->w_cursor.col))
{
#ifdef FEAT_SYN_HL
if (has_syntax)
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 4610,
/**/
4609,
/**/
// End :catch or :finally scope: set instruction index in ISN_TRY
// instruction
try_isn->isn_arg.tryref.try_ref->try_endtry = instr->ga_len;
- if (cctx->ctx_skip != SKIP_YES
- && generate_instr(cctx, ISN_ENDTRY) == NULL)
+ if (generate_instr(cctx, ISN_ENDTRY) == NULL)
return NULL;
#ifdef FEAT_PROFILE
if (cctx->ctx_compile_type == CT_PROFILE)
break;
if (run == 2 || curfrp->fr_width == Columns)
{
- if (height > room + room_cmdline)
- height = room + room_cmdline;
+ height = room + room_cmdline;
break;
}
frame_setheight(curfrp->fr_parent, height
break;
if (run == 2 || curfrp->fr_height >= ROWS_AVAIL)
{
- if (width > room)
- width = room;
+ width = room;
break;
}
frame_setwidth(curfrp->fr_parent, width