tags 339613 + patch
thanks
Hi,
this bug was introduced in 1.9.18-3.
I've attached a patch that reverts the changes that caused this bug,
this patch is quite small, only two lines had to be changed.
I'm not sure whether this patch has any negative side-effects, but at
least on i386 it apparently does not break something.
Regards,
Carsten
diff -ur hnb-1.9.18.old/src/ui_draw.c hnb-1.9.18/src/ui_draw.c
--- hnb-1.9.18.old/src/ui_draw.c 2006-12-31 18:49:38.000000000 +0100
+++ hnb-1.9.18/src/ui_draw.c 2006-12-31 18:56:35.000000000 +0100
@@ -780,8 +780,8 @@
line_nodeno[active_line] = node_no (node);
if (edit_mode) {
- lines = draw_item (active_line, strlen(input) - 1,
- node, drawmode_edit);
+ lines = draw_item (active_line, (int) input, node,
+ drawmode_edit);
} else {
lines = draw_item (active_line, strlen (input), node,
drawmode_completion);
diff -ur hnb-1.9.18.old/src/ui_edit.c hnb-1.9.18/src/ui_edit.c
--- hnb-1.9.18.old/src/ui_edit.c 2006-12-31 18:49:38.000000000 +0100
+++ hnb-1.9.18/src/ui_edit.c 2006-12-31 18:53:27.000000000 +0100
@@ -81,7 +81,7 @@
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: