(read_process_output): Use clip_to_bounds when moving
authorRichard M. Stallman <rms@gnu.org>
Sat, 1 Jan 1994 15:12:52 +0000 (15:12 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 1 Jan 1994 15:12:52 +0000 (15:12 +0000)
to the process marker.

src/process.c

index 031bca2..ae2350a 100644 (file)
@@ -2138,7 +2138,7 @@ read_process_output (proc, channel)
         at the current end-of-output marker,
         thus preserving logical ordering of input and output.  */
       if (XMARKER (p->mark)->buffer)
-       SET_PT (marker_position (p->mark));
+       SET_PT (clip_to_bounds (BEGV, marker_position (p->mark), ZV));
       else
        SET_PT (ZV);