SKalt / git-cc

a git extension to help write conventional commits
Other
83 stars 8 forks source link

selector lines get mangled on each keystroke on small terminals #5

Closed SKalt closed 3 years ago

SKalt commented 3 years ago

On small terminals (I'm not yet sure what exact column width) each keystroke prints extra lines. This is likely due to how line-wrapping and listening for terminal resizing works in pkg/single_select.

select a commit type:
select a commit type:
select a commit type:
select a commit type:
select a commit type:
   type to select
   feat     adds a new feature
   fix      fixes a bug
   docs     changes only the documentation
   style    changes the style but not the meaning of the code (such as formatting)
 > perf     improves performance
   test     adds or corrects tests
   build    changes the build system or external dependencies
   chore    changes outside the code, docs, or tests
   ci       changes to the Continuous Inegration (CI) system
   refactor changes the code without changing behavior
   revert   reverts prior changes

submit: tab/enter; navigate: up/down; cancel: ctrl+c
SKalt commented 3 years ago

resolved in 7fe3558.