Prevent accidental edits in the ansi-term buffer from breaking resizing

* lisp/term.el (term-unwrap-line, term-emulate-terminal): Prevent the
  `term-line-wrap` property of newlines from spreading accidentally
  when inserting text next to it.
1 job for master in 5 minutes and 55 seconds (queued for 3 seconds)
Status Job ID Name Coverage
  Test
failed #1682
test-all

00:05:55

 
Name Stage Failure
failed
test-all Test
make[2]: *** [bootstrap-emacs.pdmp] Error 255
Makefile:807: recipe for target 'bootstrap-emacs.pdmp' failed
make[2]: Leaving directory '/builds/emacs/emacs/src'
Makefile:424: recipe for target 'src' failed
make[1]: Leaving directory '/builds/emacs/emacs'
Makefile:1115: recipe for target 'bootstrap' failed
make[1]: *** [src] Error 2
make: *** [bootstrap] Error 2
ERROR: Job failed: exit code 1