Commit c5896ef4 authored by Karl Heuer's avatar Karl Heuer
Browse files

(Fminibuffer_prompt_width): Undo previous change for negative values.

This function does not include hscroll positioning any more.
parent 9ae6d54a
...@@ -1541,13 +1541,11 @@ If no minibuffer is active, return nil.") ...@@ -1541,13 +1541,11 @@ If no minibuffer is active, return nil.")
DEFUN ("minibuffer-prompt-width", Fminibuffer_prompt_width, DEFUN ("minibuffer-prompt-width", Fminibuffer_prompt_width,
Sminibuffer_prompt_width, 0, 0, 0, Sminibuffer_prompt_width, 0, 0, 0,
"Return the horizontal position after the minibuffer prompt.\n\ "Return the display width of the minibuffer prompt.")
This may be less than the actual display width of the minibuffer prompt,\n\
or even negative, if horizontal scrolling is in effect in the minibuffer.")
() ()
{ {
Lisp_Object width; Lisp_Object width;
XSET (width, Lisp_Int, minibuf_prompt_width); XFASTINT (width) = minibuf_prompt_width;
return width; return width;
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment