Commit 78f8adf
authored
status: fix exec command history not applied (#458)
Previously, in `exec jj` mode, typing triggers fuzzy/regex suggestions
from command history. However, when selecting a suggestion and pressing
Enter, the command executed was still the original typed input instead
of the selected history command.
The issue was that, the input field's value isn't updated upon entry
selection in command history.
This fix checks if there's a selected match in the fuzzy suggestions
list before executing. If there is one, it:
1. Gets the selected match string
2. Strips the single quotes that SelectedMatch wraps around the value
3. Updates the input value with so it also gets saved to history
correctly1 parent 036eb76 commit 78f8adf
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
148 | 156 | | |
149 | 157 | | |
150 | 158 | | |
| |||
0 commit comments