mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-15 22:05:24 -05:00
reformat comments
This commit is contained in:
parent
94d773a262
commit
fefe3c7d81
4 changed files with 13 additions and 19 deletions
8
vimode.c
8
vimode.c
|
|
@ -17,10 +17,8 @@
|
|||
#include "vimode.h"
|
||||
#include "xmalloc.h"
|
||||
|
||||
// TODO (kociap): consider adding scrolloff.
|
||||
// TODO (kociap): consider not cancelling selection on scroll.
|
||||
// TODO (kociap): jump list?
|
||||
// TODO (kociap): WORD motions.
|
||||
// TODO (kociap): consider not cancelling selection on lines being
|
||||
// scrolled out.
|
||||
|
||||
static bool is_mode_visual(enum vi_mode const mode)
|
||||
{
|
||||
|
|
@ -1357,6 +1355,8 @@ static void execute_vimode_binding(struct seat *seat, struct terminal *term,
|
|||
mode = VI_MODE_VBLOCK;
|
||||
}
|
||||
|
||||
// TODO (kociap): selection start is in view relative, so scrolling and
|
||||
// changing mode will alter the start position.
|
||||
enum selection_kind const selection = selection_kind_from_vi_mode(mode);
|
||||
if (is_mode_visual(term->vimode.mode)) {
|
||||
// "Entering" the same mode exits it. Otherwise, we switch from
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue