Bug #127

TextViews.ShowRange does not clear the auto-scroll range

Added by J. Templ over 3 years ago. Updated over 3 years ago.

Status:ClosedStart date:09/02/2016
Priority:NormalDue date:
Assignee:J. Templ% Done:


Target version:1.7
Forum topic:


A single text.Insert(...) operation followed by a TextViews.ShowRange(text, ...) does not scroll to the requested position but to the end of the insertion.
This results from the auto scroll mechanism of TextControllers, which scrolls a text lazily to the position of the last modification.
TextViews.ShowRange therefore should clear the auto scroll range if there is one.

Associated revisions

Revision 20f7c27b
Added by J. Templ over 3 years ago

TextViews.ShowRange now clears the auto-scroll range. Refs: #127.
This is done by forwarding a PositionMsg received by a view to its controller.
Therefore, method HandleModelMsg in the text controller is extended for handling a PositionMsg.

Signed-off-by: Josef Templ <>

Revision fa99645f
Added by J. Templ over 3 years ago

focusOnly check added. Refs: #127.
Changes of TextViews reset because the PositionMsg is sent to the controller automatically.

Signed-off-by: Josef Templ <>


#1 Updated by D. G. Danforth over 3 years ago

  • Status changed from New to Closed

Fixes fold expansion.

Also available in: Atom PDF