diff options
| author | Karl Heuer | 1995-05-15 21:47:44 +0000 |
|---|---|---|
| committer | Karl Heuer | 1995-05-15 21:47:44 +0000 |
| commit | 39fc6077c5002e2c8047fff2e9e9a3415a684aec (patch) | |
| tree | 737a5a99847cb85afe02755ff2f592d7c6c41a38 | |
| parent | 5960289b1d8a462826bc21ce033c16dc2ad65008 (diff) | |
| download | emacs-39fc6077c5002e2c8047fff2e9e9a3415a684aec.tar.gz emacs-39fc6077c5002e2c8047fff2e9e9a3415a684aec.zip | |
(vmotion): handle the case where `minibuf_prompt' is nil.
| -rw-r--r-- | src/indent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/indent.c b/src/indent.c index 9c29d459870..e075e236d1b 100644 --- a/src/indent.c +++ b/src/indent.c | |||
| @@ -1095,7 +1095,7 @@ vmotion (from, vtarget, w) | |||
| 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 | ||