mirror of
https://github.com/neovim/neovim.git
synced 2025-09-26 13:08:33 +00:00
move changed_int/changed_internal
This commit is contained in:
@@ -93,7 +93,7 @@ void changed(void)
|
|||||||
need_wait_return = save_need_wait_return;
|
need_wait_return = save_need_wait_return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
changed_int();
|
changed_internal();
|
||||||
}
|
}
|
||||||
buf_inc_changedtick(curbuf);
|
buf_inc_changedtick(curbuf);
|
||||||
|
|
||||||
@@ -105,16 +105,13 @@ void changed(void)
|
|||||||
* Internal part of changed(), no user interaction.
|
* Internal part of changed(), no user interaction.
|
||||||
* Also used for recovery.
|
* Also used for recovery.
|
||||||
*/
|
*/
|
||||||
void
|
void changed_internal(void)
|
||||||
changed_internal(void)
|
|
||||||
{
|
{
|
||||||
curbuf->b_changed = TRUE;
|
curbuf->b_changed = true;
|
||||||
ml_setflags(curbuf);
|
ml_setflags(curbuf);
|
||||||
check_status(curbuf);
|
check_status(curbuf);
|
||||||
redraw_tabline = TRUE;
|
redraw_tabline = true;
|
||||||
#ifdef FEAT_TITLE
|
need_maketitle = true; // set window title later
|
||||||
need_maketitle = TRUE; // set window title later
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -1785,18 +1785,6 @@ int gchar_pos(pos_T *pos)
|
|||||||
return utf_ptr2char(ml_get_pos(pos));
|
return utf_ptr2char(ml_get_pos(pos));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* Internal part of changed(), no user interaction.
|
|
||||||
*/
|
|
||||||
void changed_int(void)
|
|
||||||
{
|
|
||||||
curbuf->b_changed = true;
|
|
||||||
ml_setflags(curbuf);
|
|
||||||
check_status(curbuf);
|
|
||||||
redraw_tabline = TRUE;
|
|
||||||
need_maketitle = TRUE; /* set window title later */
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Changed bytes within a single line for the current buffer.
|
* Changed bytes within a single line for the current buffer.
|
||||||
|
Reference in New Issue
Block a user