summaryrefslogtreecommitdiff
path: root/readline
diff options
context:
space:
mode:
authorFrederic Riss <frederic.riss@st.com>2006-11-13 09:33:30 +0000
committerFrederic Riss <frederic.riss@st.com>2006-11-13 09:33:30 +0000
commitd901b52e66d36e57f2a6547060d578a80eb4635a (patch)
tree00ac470aeb0a62d3957f46823f5cc9d22e0a865e /readline
parent4db91c9b94ad2a3d4fdb85b07cd46f4cf6b8937b (diff)
downloadgdb-d901b52e66d36e57f2a6547060d578a80eb4635a.tar.gz
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')
-rw-r--r--readline/ChangeLog.gdb5
-rw-r--r--readline/terminal.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/readline/ChangeLog.gdb b/readline/ChangeLog.gdb
index 8efe3c0ee38..67514730306 100644
--- a/readline/ChangeLog.gdb
+++ b/readline/ChangeLog.gdb
@@ -1,3 +1,8 @@
+2006-11-13 Denis Pilat <denis.pilat@st.com>
+
+ * terminal.c (_rl_get_screen_size): use wr and wc variable to store
+ window size.
+
2006-10-21 Ulrich Weigand <uweigand@de.ibm.com>
* callback.c: Include "xmalloc.h".
diff --git a/readline/terminal.c b/readline/terminal.c
index 21732a791bb..46b50e77e24 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