Skip to content

TEDIT BOUT should replace and not insert #1740

@rmkaplan

Description

@rmkaplan

A Tedit text stream tries to simulate the behavior of other streams (files, strings) as much as possible, through the :TEXTSTREAM external format. It has difference in one respect: If BOUT is defined for other streams and it is applied when the file pointer is not at the end of the stream, then the byte at the current character position is replaced. If it is applied at the end of the stream, it is added on. But Tedit's BOUT currently inserts the character in the middle rather than replacing, pushhing all later characters down and growing the file.

Tedit should also do a replace in that situation, so that a program that writes to other streams will see the same behavior if given a Tedit stream to write on.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions