branch: externals/ruby-end commit a762ab34ac09e0147fac113b7f789b349c8ee0f8 Author: Dmitry Gutov <dgu...@yandex.ru> Commit: Dmitry Gutov <dgu...@yandex.ru>
Add the recommended second arg to looking-back calls --- ruby-end.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ruby-end.el b/ruby-end.el index c54e642ac4..4c1ae60834 100644 --- a/ruby-end.el +++ b/ruby-end.el @@ -158,8 +158,10 @@ When nil, any `last-command' will do." (memq last-command ruby-end-expand-only-for-last-commands)) (ruby-end-code-at-point-p) (or - (looking-back ruby-end-expand-statement-modifiers-before-re) - (looking-back ruby-end-expand-keywords-before-re)) + (looking-back ruby-end-expand-statement-modifiers-before-re + (line-beginning-position)) + (looking-back ruby-end-expand-keywords-before-re + (line-beginning-position))) (looking-at ruby-end-expand-after-re)))) (defun ruby-end-code-at-point-p ()