branch: elpa/go-mode
commit 8965fa1b243ab8e9c059bb115747985dd988e7cd
Author: Lowe Thiderman <[email protected]>
Commit: Dominik Honnef <[email protected]>
Use forward-list instead of re-search-forward in go-goto-return-value
---
go-mode.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/go-mode.el b/go-mode.el
index 9a77ac3..a5fd327 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -1624,8 +1624,9 @@ If the function is anonymous, place point on the 'func'
keyword."
If there is none, make space for one to be added."
(interactive)
(go-goto-arguments)
- (re-search-forward ")" nil t)
- (forward-char 1)
+ (backward-char)
+ (forward-list)
+ (forward-char)
;; Opening parenthesis, enter it
(when (looking-at "(")