diff options
author | Saber Haj Rabiee | 2022-09-01 01:29:15 +0000 |
---|---|---|
committer | GitHub | 2022-09-01 01:29:15 +0000 |
commit | 1cbf5525540531f26cd6bd765de93b20d96078f5 (patch) | |
tree | f5cbc491ed09218f857ce5ac9d4751c88a4da573 /helix-term/src/commands.rs | |
parent | ee94031fc48ca0a4437c543221266a38e8e1ff87 (diff) |
fix: prevents storing last prompt if is top of stack (#3609)
Diffstat (limited to 'helix-term/src/commands.rs')
-rw-r--r-- | helix-term/src/commands.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 41960d35..cd92c42d 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -1977,7 +1977,7 @@ fn extend_line_impl(cx: &mut Context, extend: Extend) { let end = text.line_to_char( match extend { Extend::Above => end_line + 1, // the start of next line - Extend::Below => (end_line + count), + Extend::Below => end_line + count, } .min(text.len_lines()), ); |