Skip to content

Commit

Permalink
Fix command mode display bug
Browse files Browse the repository at this point in the history
Command mode wasn't getting displayed on update. This wasn't obvious except in
python because it was still changing from signals, which often happen in
command mode.

This was fixed by registering changes in command mode as changes. This was
previously avoided because of out-of-sync meta/text but that is no longer a
problem thanks to slices.
  • Loading branch information
ardagnir committed Dec 3, 2016
1 parent a154cf9 commit 8a71279
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions athame_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -976,10 +976,12 @@ static int athame_get_vim_info_inner()
}
if (command)
{
setenv("ATHAME_VIM_COMMAND", command, 1);
strcpy(athame_command, command);
command_cursor = cmd_pos;
// Don't record a change because the highlight for incsearch might not have changed yet.
if(strcmp(athame_command, command) !=0 || command_cursor != cmd_pos) {
setenv("ATHAME_VIM_COMMAND", command, 1);
strcpy(athame_command, command);
command_cursor = cmd_pos;
changed =1;
}
}
}
else
Expand Down

0 comments on commit 8a71279

Please sign in to comment.