about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ui/inputwin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/inputwin.c b/src/ui/inputwin.c
index cec6ef7d..f567b0a8 100644
--- a/src/ui/inputwin.c
+++ b/src/ui/inputwin.c
@@ -264,7 +264,7 @@ static int
 _get_display_length(void)
 {
     int len = 0;
-    gchar *curr = g_utf8_offset_to_pointer(line, 0);
+    gchar *curr = g_utf8_offset_to_pointer(input, 0);
     while (*curr != '\0') {
         gunichar curru = g_utf8_get_char(curr);
         if (g_unichar_iswide(curru)) {