about summary refs log tree commit diff stats
path: root/src/input_win.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/input_win.c')
-rw-r--r--src/input_win.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input_win.c b/src/input_win.c
index 6f553b42..be030f29 100644
--- a/src/input_win.c
+++ b/src/input_win.c
@@ -81,9 +81,9 @@ create_input_window(void)
 void
 inp_win_resize(const char * const input, const int size)
 {
-    int rows, cols, inp_x, inp_y;
+    int rows, cols, inp_x;
     getmaxyx(stdscr, rows, cols);
-    getyx(inp_win, inp_y, inp_x);
+    inp_x = getcurx(inp_win);
     
     // if lost cursor off screen, move contents to show it
     if (inp_x >= pad_start + cols) {