Index: blender/source/blender/editors/space_text/text_ops.c =================================================================== --- blender/source/blender/editors/space_text/text_ops.c (revisión: 27862) +++ blender/source/blender/editors/space_text/text_ops.c (copia de trabajo) @@ -1586,17 +1586,25 @@ int line= RNA_int_get(op->ptr, "line"); short nlines= txt_get_span(text->lines.first, text->lines.last)+1; - if(line < 1 || line > nlines) - return OPERATOR_CANCELLED; + if(line < 1) + txt_move_toline(text, 1, 0); + else if(line > nlines) + txt_move_toline(text, nlines-1, 0); + else + txt_move_toline(text, line-1, 0); - txt_move_toline(text, line-1, 0); - text_update_cursor_moved(C); WM_event_add_notifier(C, NC_TEXT|ND_CURSOR, text); return OPERATOR_FINISHED; } +static int jump_invoke(bContext *C, wmOperator *op, wmEvent *event) +{ + return WM_operator_props_dialog_popup(C,op,200,100); + +} + void TEXT_OT_jump(wmOperatorType *ot) { /* identifiers */ @@ -1605,7 +1613,7 @@ ot->description= "Jump cursor to line"; /* api callbacks */ - ot->invoke= WM_operator_props_popup; + ot->invoke= jump_invoke; ot->exec= jump_exec; ot->poll= text_edit_poll;