1. 07 May, 2019 1 commit
    • John Shahid's avatar
      Fix setting and resetting of scroll-with-delete · e44b56d1
      John Shahid authored
      The start and end lines of the scroll region must to be in the range
      [0,term-height).  There are few placees that incorrectly set the end
      line of the scroll region to term-height which is outside the valid
      range.  Combined with another off-by-one error in
      term-set-scroll-region's clamping logic, this would cause
      term-scroll-with-delete to be unnecessarily turned on.
      * lisp/term.el (term-scroll-start,term-scroll-end): Use defvar-local
      to define the variables and document the valid range of values that
      the variables can take.
      (term--last-line): New function to calculate the 0-based index of the
      last line.
      (term--reset-scroll-region): New function to reset the scroll region
      to the full height of the terminal.
      (term-mode,term-reset-size,term-reset-terminal): Call
      term--reset-scroll-region to reset the scroll region.
      (term-set-scroll-region): Fix the off-by-one error in the clamping
      logic which allowed term-scroll-end to have values outside the valid
      range [0,term-height).
  2. 01 Jan, 2019 1 commit
  3. 10 Jun, 2018 1 commit
  4. 02 Jun, 2018 1 commit
  5. 14 Mar, 2018 1 commit
    • Noam Postavsky's avatar
      Fix line-wrapping for term.el (Bug#30775) · 4c33ad4a
      Noam Postavsky authored
      * lisp/term.el (term-emulate-terminal): Leave line-wrapping state if
      point was moved after we entered it.
      * test/lisp/term-tests.el (term-line-wrapping-then-motion): New test.
  6. 02 Feb, 2018 1 commit
    • Noam Postavsky's avatar
      ; Avoid process kill query during term tests · 99251ab6
      Noam Postavsky authored
      * test/lisp/term-tests.el (term-test-screen-from-input): Just unset
      the process query-on-exit flag to rather than trying to end the
      process before the end of test (which is generally unreliable).
  7. 19 Jan, 2018 1 commit
    • Noam Postavsky's avatar
      Add tests for term.el · 1d50c185
      Noam Postavsky authored
      * lisp/term.el (term-mode): Add `name' attribute to
      window-adjust-process-window-size-function value, so that it can be
      removed easily by tests.
      * test/lisp/term-tests.el: New tests.