Skip to content

Commit

Permalink
4. [release:2.1.0]
Browse files Browse the repository at this point in the history
  • Loading branch information
just-do-halee committed Jan 2, 2022
1 parent 450f538 commit 3d9fce4
Show file tree
Hide file tree
Showing 12 changed files with 559 additions and 22 deletions.
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
## 2.1.0 (January 2, 2022)

### Release 2.1.0
* Patched:
- change(&mut self, input: &char`, pos: usize`) in `Extras`
* New Feature:
- *.next_to_left()*
- *.next_to_right()*
* *If `next` or `jump` can effect the `Extras`.*
- *.noeffects()*
- *.noeffects_mut()*
- *.noeffects_on()*
- *.noefeects_off()*
* *Bump until meets `fn` = `true`.*
- *.next_to_until(`fn`)*
* *Bump while `fn` = `true`.*
- *.next_to_while(`fn`)*
* *Cloning `saved().extras` to `self.extras()`.*
- *.to_range_extras()*
---

## 2.0.0 (December 29, 2021)

### Release 2.0.0
Expand Down
5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cursor"
version = "2.0.0"
version = "2.1.0"
authors = ["just-do-halee <[email protected]>"]
homepage = "https://github.com/just-do-halee/cursor"
repository = "https://github.com/just-do-halee/cursor"
Expand All @@ -20,4 +20,7 @@ edition = "2021"
default = [ "std" ]
std = []

[dev-dependencies]
derive-new = "0.5"

[dependencies]
2 changes: 1 addition & 1 deletion cursor_diagram.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions examples/advanced.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ impl Extras<u8> for Counter {
fn reset(&mut self) {
self._reset()
}
fn change(&mut self, input: &u8) {
fn change(&mut self, input: &u8, _pos: usize) {
if input % 2 == 0 {
self.0 += 1;
}
Expand All @@ -47,7 +47,7 @@ impl Extras<char> for Counter {
fn reset(&mut self) {
self._reset()
}
fn change(&mut self, input: &char) {
fn change(&mut self, input: &char, _pos: usize) {
if *input == ' ' {
self.0 += 1;
}
Expand Down
Loading

0 comments on commit 3d9fce4

Please sign in to comment.