Skip to content

Commit 1ad786a

Browse files
author
rockyb
committed
Off by one on showing breakpoint positions
git-svn-id: http://ruby-debug.rubyforge.org/svn/trunk@945 453b2852-3d18-0410-866e-d09c099698e4
1 parent e4e9808 commit 1ad786a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

emacs/rdebug-breaks.el

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ Argument COMINT-BUFFER is the assocaited gud process buffer."
129129
'keymap rdebug-breakpoint-mode-map)))
130130
(forward-line)))
131131
(goto-char (point-min))
132-
(forward-line (1- old-line-number))))
132+
(forward-line (1- old-line-number))
133+
))
133134
(rdebug-breakpoint-parse-and-update-cache)
134135
(rdebug-breakpoint-update-icons (rdebug-breakpoint-all))))
135136

@@ -368,7 +369,7 @@ Argument PT indicates the file and line where the breakpoint should be set."
368369
(set-buffer buf)
369370
(save-excursion
370371
(goto-char (point-min))
371-
(forward-line (nth 4 entry))
372+
(forward-line (1- (nth 4 entry)))
372373
;; Workaround for bug in `gdb-ui'. (It checks
373374
;; `left-fringe-width' but it doesn't interpret the
374375
;; `nil' value correctly.

0 commit comments

Comments
 (0)