fix quit flow
- SHA
7b9c3b853208ac5d490d9f70a0b33354d5dfe9b9- Parents
-
baa024d - Tree
ab5036a
7b9c3b8
7b9c3b853208ac5d490d9f70a0b33354d5dfe9b9baa024d
ab5036a| Status | File | + | - |
|---|---|---|---|
| M |
src/display_module.f90
|
2 | 2 |
| M |
src/fuss_main.f90
|
4 | 4 |
src/display_module.f90modified@@ -183,14 +183,14 @@ contains | ||
| 183 | 183 | achar(27) // '[31m✗' // achar(27) // '[0m=modified ' // & |
| 184 | 184 | achar(27) // '[90m✗' // achar(27) // '[0m=untracked ' // & |
| 185 | 185 | achar(27) // '[34m↓' // achar(27) // '[0m=incoming' // achar(27) // '[0m' |
| 186 | - print '(A)', achar(27) // '[33mKeys: j/k/↑/↓:nav | ←/→:nav tree | space:toggle | .:hide-dots | a:stage | u:unstage | S:stage-all | U:unstage-all | x:discard | z:stash | Z:unstash | b:switch | n:new-br | R:del-br | G:merge | O:reset | I:rebase | f:fetch | d:diff | c:view | w:blame | h:history | L:reflog | y:cherry-pick | v:revert | r:delete | l:pull | m:commit | M:amend | p:push | t:tag | s:status | q:exit-mode | ESC:exit-mode | ctrl-q:quit' // achar(27) // '[0m' | |
| 186 | + print '(A)', achar(27) // '[33mKeys: j/k/↑/↓:nav | ←/→:nav tree | space:toggle | .:hide-dots | a:stage | u:unstage | S:stage-all | U:unstage-all | x:discard | z:stash | Z:unstash | b:switch | n:new-br | R:del-br | G:merge | O:reset | I:rebase | f:fetch | d:diff | c:view | w:blame | h:history | L:reflog | y:cherry-pick | v:revert | r:delete | l:pull | m:commit | M:amend | p:push | t:tag | s:status | q:exit-mode | ESC:exit-mode | ctrl-c:quit' // achar(27) // '[0m' | |
| 187 | 187 | else |
| 188 | 188 | ! Normal mode help |
| 189 | 189 | print '(A)', 'Legend: ' // achar(27) // '[32m↑' // achar(27) // '[0m=staged ' // & |
| 190 | 190 | achar(27) // '[31m✗' // achar(27) // '[0m=modified ' // & |
| 191 | 191 | achar(27) // '[90m✗' // achar(27) // '[0m=untracked ' // & |
| 192 | 192 | achar(27) // '[34m↓' // achar(27) // '[0m=incoming' |
| 193 | - print '(A)', 'Keys: j/k/↑/↓:nav | ←/→:nav tree | space:toggle | .:hide-dots | alt-g:git-mode | ctrl-q:quit' | |
| 193 | + print '(A)', 'Keys: j/k/↑/↓:nav | ←/→:nav tree | space:toggle | .:hide-dots | alt-g:git-mode | ctrl-c:quit' | |
| 194 | 194 | end if |
| 195 | 195 | |
| 196 | 196 | ! Don't free tree - it's owned by interactive_mode |
src/fuss_main.f90modified@@ -320,10 +320,10 @@ contains | ||
| 320 | 320 | close(99) |
| 321 | 321 | end if |
| 322 | 322 | |
| 323 | - ! Check for ctrl-q to quit (priority over everything) | |
| 324 | - if (key == achar(17)) then | |
| 323 | + ! Check for ctrl-c to quit (priority over everything) | |
| 324 | + if (key == achar(3)) then | |
| 325 | 325 | open(99, file='/tmp/fuss_debug.log', position='append') |
| 326 | - write(99, '(A)') 'CTRL-Q detected - quitting!' | |
| 326 | + write(99, '(A)') 'CTRL-C detected - quitting!' | |
| 327 | 327 | close(99) |
| 328 | 328 | running = .false. |
| 329 | 329 | cycle |
@@ -710,7 +710,7 @@ contains | ||
| 710 | 710 | needs_full_redraw = .true. |
| 711 | 711 | end if |
| 712 | 712 | ! Note: In normal mode, 'q' is used for fuzzy search |
| 713 | - ! Use ctrl-q to quit from normal mode | |
| 713 | + ! Use ctrl-c to quit from normal mode | |
| 714 | 714 | case default |
| 715 | 715 | ! Unhandled keys - do nothing |
| 716 | 716 | continue |