Commit 0822f4e098eb410ef2359362f79c83516bff19ee
Fix strange behaviour if command-line fill screen
That is the whole screen. It's less strange now: resized to maximum.
Author: xaizek
Author date (UTC): 2016-06-30 18:45
Committer name: xaizek
Committer date (UTC): 2016-06-30 18:45
Parent(s): 28b8b233e8dd4f998522c2d80bf596984da3e7df
Signing key: 99DC5E4DB05F6BE2
Tree: 411a73f61328f1ab5f0231aaaac304b0a7ab51d7
File ChangeLog changed (mode: 100644) (index 6e17dcdfd..c7d58a2cd) |
205 |
205 |
Fixed possible off cursor after cmdline insertions of text with wide |
Fixed possible off cursor after cmdline insertions of text with wide |
206 |
206 |
characters via Ctrl-X combinations or dot completion. |
characters via Ctrl-X combinations or dot completion. |
207 |
207 |
|
|
|
208 |
|
Fixed quite strange behaviour if command-line is too fill the whole |
|
209 |
|
screen (it's less strange now, resized to maximum). |
|
210 |
|
|
208 |
211 |
0.8.1 to 0.8.1a |
0.8.1 to 0.8.1a |
209 |
212 |
|
|
210 |
213 |
Added c key to menus that inserts parts of menu line into command-line. |
Added c key to menus that inserts parts of menu line into command-line. |
File src/modes/cmdline.c changed (mode: 100644) (index 85c60e410..f0fb24532) |
... |
... |
line_part_complete(line_stats_t *stat, const char *line_mb, const char *p, |
2423 |
2423 |
static void |
static void |
2424 |
2424 |
update_cmdline_size(void) |
update_cmdline_size(void) |
2425 |
2425 |
{ |
{ |
2426 |
|
const int required_height = get_required_height(); |
|
|
2426 |
|
const int required_height = MIN(getmaxy(stdscr), get_required_height()); |
2427 |
2427 |
if(required_height < getmaxy(status_bar)) |
if(required_height < getmaxy(status_bar)) |
2428 |
2428 |
{ |
{ |
2429 |
2429 |
/* Do not shrink status bar. */ |
/* Do not shrink status bar. */ |