diff options
author | Frederic Riss <frederic.riss@st.com> | 2006-11-13 09:33:30 +0000 |
---|---|---|
committer | Frederic Riss <frederic.riss@st.com> | 2006-11-13 09:33:30 +0000 |
commit | 10e14daab1f52875706c91e3cbba04ca03dab6ae (patch) | |
tree | 1633e0523911de5bbb90963f915a9e2c26e5fbfb /readline/terminal.c | |
parent | 83fb162ab0515849de91ee562268eef0352d6ce8 (diff) | |
download | gdb-10e14daab1f52875706c91e3cbba04ca03dab6ae.zip gdb-10e14daab1f52875706c91e3cbba04ca03dab6ae.tar.gz gdb-10e14daab1f52875706c91e3cbba04ca03dab6ae.tar.bz2 |
2006-11-13 Denis Pilat <denis.pilat@st.com>
* terminal.c (_rl_get_screen_size): use wr and wc variable to store
window size.
Diffstat (limited to 'readline/terminal.c')
-rw-r--r-- | readline/terminal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/readline/terminal.c b/readline/terminal.c index 21732a7..46b50e7 100644 --- a/readline/terminal.c +++ b/readline/terminal.c @@ -226,8 +226,8 @@ _rl_get_screen_size (tty, ignore_env) CONSOLE_SCREEN_BUFFER_INFO scr; if (GetConsoleScreenBufferInfo (hConOut, &scr)) { - _rl_screenwidth = scr.dwSize.X; - _rl_screenheight = scr.srWindow.Bottom - scr.srWindow.Top + 1; + wc = scr.dwSize.X; + wr = scr.srWindow.Bottom - scr.srWindow.Top + 1; } } #endif |