Permalink
Browse files

fix cursor positioning

  • Loading branch information...
1 parent 29ae8b7 commit 09f5d2d5b46e5b07dc534ba058cc0a3102b46c55 @zaufi committed Jun 13, 2012
Showing with 4 additions and 2 deletions.
  1. +2 −0 CHANGES.md
  2. +2 −2 expand/expand.py
View
@@ -13,6 +13,8 @@ Version 0.5 (2012-06-10)
* use decorators to disable (show popup w/ alert) actions by various constraints,
for example commenting text block w/ `#if 0' have sense only for C/C++
documents
+* make some comment manipulation actions to work w/ other than C/C++ source code
+ (CMake, Python, Perl, Bash)
Version 0.4 (2012-06-04)
========================
View
@@ -310,8 +310,8 @@ def replaceAbsolutePathWithLinkCallback(match):
else:
insertPosition.setLine(insertPosition.line() + 1)
cursorAdvancement -= currentLength + 1 # NOTE +1 for every \n char
- insertPosition.setColumn(cursorAdvancement)
+ insertPosition.setColumn(insertPosition.column() + cursorAdvancement)
view.setCursorPosition(insertPosition)
-# kate: space-indent on;
+# kate: space-indent on; hl python;

0 comments on commit 09f5d2d

Please sign in to comment.