--- hnb-1.9.18/src/ui_draw.c 2006-07-04 10:38:14.000000000 +1000 +++ hnb-1.9.18.patched/src/ui_draw.c 2006-07-04 10:09:50.000000000 +1000 @@ -780,7 +780,7 @@ void ui_draw (Node *node, char *input, i line_nodeno[active_line] = node_no (node); if (edit_mode) { - lines = draw_item (active_line, strlen(input) - 1, + lines = draw_item (active_line, (int) input, node, drawmode_edit); } else { lines = draw_item (active_line, strlen (input), node, --- hnb-1.9.18/src/ui_edit.c 2006-07-04 10:38:14.000000000 +1000 +++ hnb-1.9.18.patched/src/ui_edit.c 2006-07-04 10:39:26.000000000 +1000 @@ -81,7 +81,7 @@ static void* ui_edit_cmd (int argc, char while (!stop) { node_set (pos, TEXT, input); - ui_draw (pos, input, 1); + ui_draw (pos, (char *) cursor_pos, 1) ; c = parsekey (ui_input (), ui_scope_nodeedit); switch (c->action) { case ui_action_right: