Author Topic: BUG: Paste and CodeCompletion does not replace all occurrences  (Read 4841 times)

Offline darksquall57

  • Multiple posting newcomer
  • *
  • Posts: 23
Hi everyone,

I just noticed that, when using the "select next occurence" shortcut (CTRL+E) and then pasting or using code completion, it only replaces the last selected occurences instead all of them.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: BUG: Paste and CodeCompletion does not replace all occurrences
« Reply #1 on: March 28, 2014, 09:32:40 am »
This is a limitation of scintilla I've not found time to fix.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6077
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: BUG: Paste and CodeCompletion does not replace all occurrences
« Reply #2 on: March 28, 2014, 09:59:29 am »
Hi everyone,

I just noticed that, when using the "select next occurence" shortcut (CTRL+E) and then pasting or using code completion, it only replaces the last selected occurences instead all of them.

Not fully understand you problem, but I don't think it is related to CodeCompletion plugin.
As OBF said, it is related to Scintilla control.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.