aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--oni-php/oni-php.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/oni-php/oni-php.el b/oni-php/oni-php.el
index 88af7af..fd12545 100644
--- a/oni-php/oni-php.el
+++ b/oni-php/oni-php.el
@@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
-;; Version: 2026.0107.143829
+;; Version: 2026.0209.115456
;; Package-Requires: (php-mode oni-yasnippet oni-flycheck oni-company oni-hydra oni-smartparens ggtags fic-mode company-php rainbow-delimiters rainbow-identifiers)
;; This program is free software; you can redistribute it and/or modify
@@ -97,7 +97,7 @@ nil for some reason."
(forward-line)
(insert "\n"))
- (unless (search-backward class nil t)
+ (unless (re-search-backward (rx "use " (literal class) ";") nil t)
(let ((start (point)))
(insert "use " class ";\n")
(pulse-momentary-highlight-region start (point)))))))