Skip to content

Commit

Permalink
Don't allow the file explorer buffer to be modified by user input
Browse files Browse the repository at this point in the history
  • Loading branch information
rgburke committed May 1, 2017
1 parent be4b7d0 commit 60b485f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions command.c
Original file line number Diff line number Diff line change
Expand Up @@ -2096,6 +2096,7 @@ static Status cm_session_file_explorer_toggle_active(
if (sess->active_buffer == fe_buffer) {
sess->active_buffer = fe_buffer->next;
cm_set_operation_mode(&sess->key_map, OM_BUFFER);
se_enable_command_type(sess, CMDT_BUFFER_MOD);
} else {
if (!cf_bool(sess->config, CV_FILE_EXPLORER)) {
RETURN_IF_FAIL(
Expand All @@ -2107,6 +2108,7 @@ static Status cm_session_file_explorer_toggle_active(
fe_buffer->next = sess->active_buffer;
sess->active_buffer = fe_buffer;
cm_set_operation_mode(&sess->key_map, OM_FILE_EXPLORER);
se_exclude_command_type(sess, CMDT_BUFFER_MOD);
}

return STATUS_SUCCESS;
Expand Down

0 comments on commit 60b485f

Please sign in to comment.