branch: elpa/jade-mode
commit 3db33f4642f7b731771e868edce7c138c05a17a5
Author: Jaakko Pallari <[email protected]>
Commit: Jaakko Pallari <[email protected]>
Fixed sws-indent-line not detecting the use of tab indent
---
sws-mode.el | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/sws-mode.el b/sws-mode.el
index 84f9a74a85..094211490b 100644
--- a/sws-mode.el
+++ b/sws-mode.el
@@ -47,14 +47,13 @@
(defun sws-indent-line ()
"Indents current line"
(interactive)
- (if (and (eq (current-indentation) 0)
- (not (eq last-command 'sws-indent-line)))
- (indent-to (sws-previous-indentation))
+ (if (eq this-command 'indent-for-tab-command)
(if mark-active
(sws-indent-region (region-beginning) (region-end))
(if (sws-at-bot-p)
(sws-do-indent-line)
- (sws-point-to-bot)))))
+ (sws-point-to-bot)))
+ (indent-to (sws-previous-indentation))))
(defun sws-at-bol-p ()
"If point is at beginning of line"