Skip to content

Commit f2e1ba4

Browse files
committed
sh: add comment
1 parent e188d0b commit f2e1ba4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sh/src/cli/vi/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,9 @@ pub struct ViEditor {
293293
last_nonmotion_command: Option<Command>,
294294
last_search: Option<LastSearch>,
295295
save_buffer: Vec<u8>,
296+
/// 0 means the `edit_line`, from 1 on
297+
/// its an index into the history starting
298+
/// from the most recent command
296299
current_command_in_history: usize,
297300
}
298301

0 commit comments

Comments
 (0)