Subject: bug#16470: 24.3.50; term mode and newlines with some window configurations

From: Constantine Vetoshev <[email-masked]>
Date: Thu, 16 Jan 2014 20:29:04 -0800

I have looked into this further, and I believe the underlying problem is an off-by-one value returned from term-window-width. The following advice is a workaround:

(defadvice term-window-width (after my-advice/term-window-width activate)
  (setq ad-return-value (1- ad-return-value)))

I don't really understand some of the logic in term-window-width, though, and I'd still like to know if some more serious underlying reason caused this to start happening in the 24.4 codebase.