Skip to content

changeEmphasis: in text editors not working for forward selection before already analogously emphasized text #158

Description

@LinqLover

STR:

  1. 'abc' asText
    	addAttribute: TextEmphasis bold from: 3 to: 3;
    	edit
  2. Forward-select ab (from left to right)
  3. Press Cmd+7 (for bold)

Expected: ab is bold

Actual: Nothing changes

This is due to TextEditor>>#changeEmphasis: determining the previous attributes from the character at the point index, being c in this case. Probably it should collect the attributes within the entire ranges instead and then toggle their global appearance (some -> all -> none -> all -> ...).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug[WHAT] Something isn't working as expected. Automated tests beneficial. :-morphic[SCOPE] The issue is related to the Morphic framework.ui system[SCOPE] Morphic, ST80 (or MVC), Etoys, ...user[SCOPE] It is for the (maybe non-programming) (end-) user: designer, artist, writer, gamer, ...

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions