diff --git a/History.txt b/History.txt index 9732142..f699fd2 100644 --- a/History.txt +++ b/History.txt @@ -1,5 +1,9 @@ == In Git +=== Bugfixes + * fixed a problem when using the sub-/string "package" before an + optional java package is stated + == 0.4 === New features diff --git a/eclim-java.el b/eclim-java.el index 1ddd205..4674b5c 100644 --- a/eclim-java.el +++ b/eclim-java.el @@ -410,7 +410,7 @@ matters for buffers containing non-ASCII characters)." "Returns the package for the class in the current buffer." (save-excursion (goto-char 0) - (if (re-search-forward "package \\(.*?\\);" (point-max) t) + (if (re-search-forward "^package \\(.*?\\);" (point-max) t) (match-string-no-properties 1)))) (defun eclim-soft-revert-imports (ignore-auto noconfirm)