]> git.eshelyaron.com Git - emacs.git/commitdiff
(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 031bca2faab10182d0398b731b4b7f015f72fabe..ae2350a85f80c3b1e11d3e1395921dbdd70855a9 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);