]> Sergey Matveev's repositories - nnn.git/commit
Use KEY_RESIZE when prompting user input
author0xACE <0xaced@gmail.com>
Tue, 16 Jul 2019 02:30:16 +0000 (04:30 +0200)
committer0xACE <0xaced@gmail.com>
Tue, 16 Jul 2019 02:30:16 +0000 (04:30 +0200)
commitba12fa8b3d215aeb1038cc5d34de2f1b2d9e3e4b
tree9574e37ffaa84d63388168dbe71bf11b2759d2d3
parentfee2c339cc635b826cc83e79a4ecd7aec24e4244
Use KEY_RESIZE when prompting user input

The problem was that a window wouldn't resize while prompting the user
for input. These changes allows the input methods in nnn to resize
properly if KEY_RESIZE is defined.

A more portable solution would be hooking the WINCH signal and update
the xlines value from there along with some resized flag.

In some cases the full window isn't redrawn until the user has finished
the input. This is because in some functions I wasn't sure the current
"path" was available.
src/nnn.c