https://bugs.kde.org/show_bug.cgi?id=439260

            Bug ID: 439260
           Summary: Adding a new variable should use the cursor position
                    as reference
           Product: SeExpr
           Version: unspecified
          Platform: Other
                OS: Other
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: General
          Assignee: krita-bugs-n...@kde.org
          Reporter: al...@alvinhc.com
  Target Milestone: ---

The last value of a script is the return value, so with an existing script
appending new variable declarations at the end seems counter-intuitive. But we
can't directly use the cursor position, because if the cursor is inside a line
then it will break the existing line.

So I think what can happen is to insert the new variable as a new line above or
below the current line the cursor is at. Whether above or below should be used
needs some consideration (I think above is better).

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to