Author Topic: Snippet insertion bug  (Read 5164 times)

Offline Tyran

  • Inferno
  • *****
  • Posts: 252
  • Karma: +1/-0
  • Grizzled Guru
    • The Whinery
Snippet insertion bug
« on: December 11, 2002, 12:34:31 AM »
If the snippet being inserted wraps onto the next line in the editor, the cursor is not placed at the correct insertion point but at the beginning of the current line.

Example:
The cursor | should end up between the closing and opening <p> tags

blan blithery bug</p>|<p class="indented">

If that line is long enough to cause the snippet to wrap to the next line then the following happens:


|blan blithery bug</p><p
class="indented">

and the cursor moves to the beginning of the current line.

Offline Fahim

  • Administrator
  • Inferno
  • *****
  • Posts: 663
  • Karma: +4/-0
    • http://www.farook.org
Snippet insertion bug
« Reply #1 on: December 11, 2002, 07:22:27 AM »
Guess I'll need to notify Raymond over at ECM about this since this is a PlusMemo bug - not one of mine :p I simply insert text at the current cursor position using the features provided by PlusMemo - but I don't really control where the cursor goes after the insertion. Of course, I can add code to do that but I would think that this is something that PlusMemo itself should handle ...

Offline Tyran

  • Inferno
  • *****
  • Posts: 252
  • Karma: +1/-0
  • Grizzled Guru
    • The Whinery
Snippet insertion bug
« Reply #2 on: December 11, 2002, 08:50:12 PM »
Quote from: Fahim
Guess I'll need to notify Raymond over at ECM about this since this is a PlusMemo bug - not one of mine :p I simply insert text at the current cursor position using the features provided by PlusMemo - but I don't really control where the cursor goes after the insertion. Of course, I can add code to do that but I would think that this is something that PlusMemo itself should handle ...


It's not a terribly big deal but thanks for looking into it.

Offline Fahim

  • Administrator
  • Inferno
  • *****
  • Posts: 663
  • Karma: +4/-0
    • http://www.farook.org
Snippet insertion bug
« Reply #3 on: December 12, 2002, 07:24:05 AM »
That's what I'm here for :p