-
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix how a breakpoint location is computed
* indium-structs.el (indium-breakpoint-location): Fix movement to return the proper location. Rationale: given that (point-min) is 1, after (goto-char (point-min)), 0 must be passed to forward-char instead of 1. This is particularly important if the breakpoint is at (point-max) because forward-char would raise an error. * test/unit/indium-breakpoint-test.el: Add test. * test/unit/indium-structs-test.el ("Breakpoints"): Fix an incorrect test: the end of line 1 is still line 1.
- Loading branch information
1 parent
23f2781
commit d2f5cf4
Showing
3 changed files
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters