From 63b6b9c43003cd5071748efca0a6d9b066834c5b Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 21 Dec 2001 09:23:28 +0000 Subject: * time.c (time_plus): result should not be negative unless NEGATIVE_TIME_T is defined. * time.c (time_new_internal): should check tv_sec overflow too. * time.c (time_timeval): should check time_t range when time is initialized from float. * time.c (time_plus): uses modf(3). * variable.c (rb_cvar_set): add frozen class/module check. * variable.c (rb_cvar_declare): add frozen class/module check. * re.c (match_to_a): should propagate taint. * re.c (rb_reg_s_quote): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- misc/ruby-mode.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'misc/ruby-mode.el') diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el index 437999dfdc..09df43dff0 100644 --- a/misc/ruby-mode.el +++ b/misc/ruby-mode.el @@ -522,9 +522,10 @@ The variable ruby-indent-level controls the amount of indentation. (re-search-backward "#" (save-excursion (beginning-of-line) (point)) t) - (save-excursion - (forward-char -1) - (not (looking-at "\\?"))) + (if (not (= (point) (point-min))) + (save-excursion + (forward-char -1) + (not (looking-at "\\?")))) (skip-chars-backward " \t") (if (save-excursion (forward-char -1) -- cgit v1.2.3