Fix 'vertical-motion' in non-interactive sessions
* src/indent.c (Fvertical_motion): Don't return uninitialized value in non-interactive session. This fixes random errors in batch mode, see http://lists.gnu.org/archive/html/emacs-devel/2016-06/msg00609.html and http://lists.gnu.org/archive/html/emacs-devel/2016-07/msg00500.html for the details.
This commit is contained in:
parent
686b520ff9
commit
658daf93e2
1 changed files with 1 additions and 0 deletions
|
@ -2027,6 +2027,7 @@ whether or not it is currently displayed in some window. */)
|
||||||
struct position pos;
|
struct position pos;
|
||||||
pos = *vmotion (PT, PT_BYTE, XINT (lines), w);
|
pos = *vmotion (PT, PT_BYTE, XINT (lines), w);
|
||||||
SET_PT_BOTH (pos.bufpos, pos.bytepos);
|
SET_PT_BOTH (pos.bufpos, pos.bytepos);
|
||||||
|
it.vpos = pos.vpos;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue