aboutsummaryrefslogtreecommitdiffstats
path: root/oni-php
diff options
context:
space:
mode:
Diffstat (limited to 'oni-php')
-rw-r--r--oni-php/oni-php.el11
1 files changed, 6 insertions, 5 deletions
diff --git a/oni-php/oni-php.el b/oni-php/oni-php.el
index ce75ac3..dc4e324 100644
--- a/oni-php/oni-php.el
+++ b/oni-php/oni-php.el
@@ -4,8 +4,8 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
-;; Version: 2025.0307.104352
-;; Package-Requires: (php-mode oni-yasnippet oni-flycheck oni-company oni-hydra ggtags fic-mode company-php rainbow-delimiters)
+;; Version: 2025.0310.102726
+;; Package-Requires: (php-mode oni-yasnippet oni-flycheck oni-company oni-hydra oni-smartparens ggtags fic-mode company-php rainbow-delimiters)
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
@@ -90,9 +90,10 @@ nil for some reason."
(forward-line)
(insert "\n"))
- (let ((start (point)))
- (insert "use " class ";\n")
- (pulse-momentary-highlight-region start (point))))))
+ (unless (search-backward class nil t)
+ (let ((start (point)))
+ (insert "use " class ";\n")
+ (pulse-momentary-highlight-region start (point)))))))
(defun oni-php-insert-dot-dwim (N)
"Insert either a concatenation or access operator depending on context.