Mickey  committed 5fc012b

* Revamped the shift region code to be more robust.

  • Participants
  • Parent commits afaef93
  • Branches default

Comments (0)

Files changed (1)

File python-extras.el

           (move-to-column column t)
           (set-mark (point))
           (insert text)
-          ;; post-move stuff here.
+          ;; without this point would be at the end of the region
           (if (eq subr 'smart)
                 (indent-rigidly (point) (mark)
-                                 (python-mp-indentation-at-point (mark))
+                                 (python-calculate-indentation)
                                  (python-mp-indentation-at-point (point))))))
           (setq deactivate-mark nil)))
     (error "Region shifting only works when transient-mark-mode is enabled.")))