Yakov Lerner wrote:

> I figured by experimentation that with ':set nochowcmd', 1-line
> message up to (&co-1) length does not cause 'Press Enter'. With
> ':set showcmd', messages longer than (&co-12) cause 'Press Enter'.
> 
> When I I first figured it, I thought 'Ah, it makes sense. There is this
> reserved area, on the right of bottom line, reserved for showcmd'.
> 
> But I looked at this again later, I thought that this looks like a
> bug. Here is why.
> 
> :set showcmd
> :echo repeat('.', &co-1) " get Press Enter" prompt
> 
> The long message is not wrapped at (&co-12) !!! If the messages were
> wrapped at (&co-12), then it would message become 2-line and then
> caused the "Press Enter" naturally. But the message is *not* wrapped
> before 'showcmd' area! The message overwrites past columns (&co-12)!
> The "reserved" area is *not* reserevd! This makes this artificial
> "Press Enter" after 1-line message a bug, I think.  What do you say?
> 
> BTW this "Press Enter" after 1-line messages is a hassle for scripte
> writers.

Vim avoids that the next command you type overwrites the message that's
there.  You need to read the message before continuing.

Mostly 'ruler' is also set, and that will be redrawn over the message.
Thus if somehow the message would be allowed to use the 'showcmd' area
you only win 12 characters.

-- 
The future isn't what it used to be.

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Reply via email to