Permalink
Browse files

No commit message

  • Loading branch information...
1 parent b68ceab commit 1e1c311a59685528728ecf1dda9fc6d013fd3da1 @sroccaserra committed Feb 21, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 smart-tab.el
View
@@ -98,7 +98,7 @@ the region or the current line (if the mark is not active)."
(defun smart-tab-default ()
"Indents region if mark is active, or current line otherwise."
(interactive)
- (if mark-active
+ (if (use-region-p)
(indent-region (region-beginning)
(region-end))
(indent-for-tab-command)))
@@ -107,7 +107,7 @@ the region or the current line (if the mark is not active)."
"If PREFIX is \\[universal-argument] or the mark is active, do not expand.
Otherwise, uses `hippie-expand' or `dabbrev-expand' to expand the text at point.."
(unless (or (consp prefix)
- mark-active)
+ (use-region-p))
(looking-at "\\_>")))
;;;###autoload

1 comment on commit 1e1c311

@sroccaserra
Owner

Replaced mark-active by (use-region-p), works with new vimpulse and visual modes.

Please sign in to comment.