aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorJim Blandy1993-01-30 01:21:00 +0000
committerJim Blandy1993-01-30 01:21:00 +0000
commitb8baad403468dcf19be68b6d54b6f0ee8827f6d2 (patch)
tree16864c31024ee8ba75c7aea306a685780ed562d3 /src/window.c
parentc4e5d591e07d57d7433400a59cca18e0ce5846e2 (diff)
downloademacs-b8baad403468dcf19be68b6d54b6f0ee8827f6d2.tar.gz
emacs-b8baad403468dcf19be68b6d54b6f0ee8827f6d2.zip
* window.c (Fscroll_left, Fscroll_right): Don't forget to apply
XWINDOW to selected_window before passing it to window_internal_width.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/window.c b/src/window.c
index b788c8f3fae..85b1c5018b8 100644
--- a/src/window.c
+++ b/src/window.c
@@ -2275,7 +2275,7 @@ Default for ARG is window width minus 2.")
2275{ 2275{
2276 2276
2277 if (NILP (arg)) 2277 if (NILP (arg))
2278 XFASTINT (arg) = window_internal_width (selected_window) - 2; 2278 XFASTINT (arg) = window_internal_width (XWINDOW (selected_window)) - 2;
2279 else 2279 else
2280 arg = Fprefix_numeric_value (arg); 2280 arg = Fprefix_numeric_value (arg);
2281 2281
@@ -2292,7 +2292,7 @@ Default for ARG is window width minus 2.")
2292 register Lisp_Object arg; 2292 register Lisp_Object arg;
2293{ 2293{
2294 if (NILP (arg)) 2294 if (NILP (arg))
2295 XFASTINT (arg) = window_internal_width (selected_window) - 2; 2295 XFASTINT (arg) = window_internal_width (XWINDOW (selected_window)) - 2;
2296 else 2296 else
2297 arg = Fprefix_numeric_value (arg); 2297 arg = Fprefix_numeric_value (arg);
2298 2298