Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#1435 Error of Bookmark after ReplaceSelection()

Bug
closed-rejected
Neil Hodgson
SciTe (1)
2
2013-06-19
2013-01-10
jacky yang
No

Select multi-line text in SciTe 3.2.3. There are more than one bookmark in them. Then Ctrl C(Copy), Ctrl V(Paste). You will find that:

If SelectionStart not at home of the first select line , after Copy and Paste, a only bookmark will leave at the first select line and orther bookmark will be clear.

If SelectionStart not at home of the first select line , after Copy and Paste, a only bookmark will leave at the end select line and orther bookmark will be clear.

If Select All, after Copy and Paste, all bookmark will be clear.

Discussion

  • Neil Hodgson
    Neil Hodgson
    2013-01-10

    • status: open --> open-rejected
    • assigned_to: Neil Hodgson
    • priority: 5 --> 2
     
  • Neil Hodgson
    Neil Hodgson
    2013-01-10

    Bookmarks are not copied onto the clipboard.

     
  • jacky yang
    jacky yang
    2013-01-11

    I hope all bookmarks in selection should be clear after ReplaceSelection() ( SCI_REPLACESEL ). Aactually it leave a bookmarks at error place at most time !

    That also happens in Code::Blocks, NotePad++, Programmer's Notepad 2.

    But All Bookmarks are clear after SCI_SETTEXT.

     
    Last edit: jacky yang 2013-01-11
  • jacky yang
    jacky yang
    2013-01-11

    You can try Del instead of Ctrl C(Copy), Ctrl V(Paste).

     
  • Neil Hodgson
    Neil Hodgson
    2013-01-11

    Bookmarks survive much editing because that is useful behaviour. If I mark the start of declarations and then remove the first declaration line, the bookmark is still at the (new) first declaration.

     
  • Neil Hodgson
    Neil Hodgson
    2013-06-19

    • status: open-rejected --> closed-rejected