Sync with sys/i386/isa/syscons.c revision 1.274.

This commit is contained in:
KATO Takenori 1998-08-15 09:04:03 +00:00
parent 4912e23d67
commit f84bf06b3f

View File

@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: syscons.c,v 1.95 1998/08/07 18:04:24 kato Exp $
* $Id: syscons.c,v 1.96 1998/08/10 16:56:53 kato Exp $
*/
#include "sc.h"
@ -5970,7 +5970,7 @@ mouse_cut(scr_stat *scp)
scp->mouse_cut_start = p;
else
scp->mouse_cut_end = p;
cut_buffer[j++] = '\n';
cut_buffer[j++] = '\r';
cut_buffer[j] = '\0';
}
@ -5995,7 +5995,7 @@ mouse_cut_start(scr_stat *scp)
((scp->mouse_pos - scp->scr_buf) / scp->xsize) * scp->xsize + i;
scp->mouse_cut_end = scp->scr_buf +
((scp->mouse_pos - scp->scr_buf) / scp->xsize + 1) * scp->xsize;
cut_buffer[0] = '\n';
cut_buffer[0] = '\r';
cut_buffer[1] = '\0';
scp->status |= MOUSE_CUTTING;
} else {
@ -6078,7 +6078,7 @@ mouse_cut_line(scr_stat *scp)
scp->mouse_cut_end = scp->mouse_cut_start + scp->xsize;
for (i = 0, p = scp->mouse_cut_start; p < scp->mouse_cut_end; ++p)
cut_buffer[i++] = *p & 0xff;
cut_buffer[i++] = '\n';
cut_buffer[i++] = '\r';
cut_buffer[i] = '\0';
scp->status |= MOUSE_CUTTING;
}