nsf / godit

A very religious text editor
MIT License
577 stars 77 forks source link

Fit to window #1

Closed mattn closed 11 years ago

mattn commented 11 years ago

godit is so sweet. I tried this on windows.

But I uses cmd.exe with 500 liens buffer, So scrollbar is always displayed. Then, I hope to fit window to visible rectangle. For example, vim.exe is doing that.

Vim

Godit

SetConsoleWindowInfo can do it. Or CreateConsoleScreenBuffer create alternate window that fit the rectangle.

nsf commented 11 years ago

Yeah, it's a termbox-go issue, I'll fix it.

nsf commented 11 years ago

https://github.com/nsf/termbox-go/commit/67700f71e103e0217

That change should fix it. Please, take a look.

mattn commented 11 years ago

Sorry, I forgot to reply this issue. It worked fine.