aligrudi / neatvi

A small vi/ex editor for editing bidirectional UTF-8 text

Home Page:http://litcave.rudi.ir/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wasting a row for prompt

kyx0r opened this issue · comments

commented

Hello @aligrudi, and sorry for spamming your mailbox so much as of late, but vi intentionally does not render the last row where the vi_prompt goes. What was the original design decision for doing so? The way I see it, it's better to render that row also, but erase it whenever the prompt or message has to be displayed. That way you maximize the amount of useful info on the screen. Also if you know where I can change the way it works, I would be very grateful, and save some of my time.

Also, is github okay method of communication for you, or it's more preferred to send you an email with questions like this? I just do this on github so that anybody else can see if they have similar problems. But I don't think there is a mailing list for your software projects, right?

commented

@aligrudi Thanks! That was very useful, because I knew that xrows did control how it displayed, but I could not find where it was defined, I did not expect it to be a header macro actually. I thought it was just an int somewhere. And yeah putting +1 everywhere is not really sound great, because that variable is used in numerous places. But luckily it was easy to change. I also had to change the way vi_drawmsg() works and some other functions that deal with prompt. And that was easy enough and right now it works perfectly!