summaryrefslogtreecommitdiff
path: root/misc/ruby-mode.el
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-12-21 09:23:28 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-12-21 09:23:28 +0000
commit63b6b9c43003cd5071748efca0a6d9b066834c5b (patch)
treef8118586a62a230db5e7a53998ec7c8775b78eac /misc/ruby-mode.el
parente93b8f1c892672a06bd6861859373e7bec49c3f6 (diff)
* 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
Diffstat (limited to 'misc/ruby-mode.el')
-rw-r--r--misc/ruby-mode.el7
1 files changed, 4 insertions, 3 deletions
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)