Mercurial > emacs
comparison src/indent.c @ 11813:5b7a7c92323d
(vmotion): handle the case where `minibuf_prompt' is nil.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Mon, 15 May 1995 21:47:44 +0000 |
parents | a0db528dfa1c |
children | 6578a356c540 |
comparison
equal
deleted
inserted
replaced
11812:0ef485e86493 | 11813:5b7a7c92323d |
---|---|
1093 && marker_position (w->start) == BEG | 1093 && marker_position (w->start) == BEG |
1094 here is deliberate; I think we want to measure from the prompt | 1094 here is deliberate; I think we want to measure from the prompt |
1095 position even if the minibuffer window has scrolled. */ | 1095 position even if the minibuffer window has scrolled. */ |
1096 if (EQ (window, minibuf_window)) | 1096 if (EQ (window, minibuf_window)) |
1097 { | 1097 { |
1098 if (minibuf_prompt_width == 0) | 1098 if (minibuf_prompt_width == 0 && STRINGP (minibuf_prompt)) |
1099 minibuf_prompt_width | 1099 minibuf_prompt_width |
1100 = string_display_width (minibuf_prompt, Qnil, Qnil); | 1100 = string_display_width (minibuf_prompt, Qnil, Qnil); |
1101 | 1101 |
1102 start_hpos = minibuf_prompt_width; | 1102 start_hpos = minibuf_prompt_width; |
1103 } | 1103 } |