comparison src/main.c @ 18160:770987511384 v8.1.2075

patch 8.1.2075: get many log messages when waiting for a typed character Commit: https://github.com/vim/vim/commit/101e99207f813ca48a4c0787eed9eb8bf67fba5a Author: Bram Moolenaar <Bram@vim.org> Date: Wed Sep 25 21:43:11 2019 +0200 patch 8.1.2075: get many log messages when waiting for a typed character Problem: Get many log messages when waiting for a typed character. Solution: Do not repeat the repeated messages when nothing happens.
author Bram Moolenaar <Bram@vim.org>
date Wed, 25 Sep 2019 21:45:03 +0200
parents 59bc3cd42cf5
children 506bf60a30a0
comparison
equal deleted inserted replaced
18159:edb8178cb67f 18160:770987511384
1120 #endif 1120 #endif
1121 } 1121 }
1122 if (was_safe) 1122 if (was_safe)
1123 { 1123 {
1124 #ifdef FEAT_JOB_CHANNEL 1124 #ifdef FEAT_JOB_CHANNEL
1125 ch_log(NULL, "SafeState: back to waiting, triggering SafeStateAgain"); 1125 // Only do this message when another message was given, otherwise we
1126 // get lots of them.
1127 if ((did_repeated_msg & REPEATED_MSG_SAFESTATE) == 0)
1128 {
1129 int did = did_repeated_msg;
1130
1131 ch_log(NULL,
1132 "SafeState: back to waiting, triggering SafeStateAgain");
1133 did_repeated_msg = did | REPEATED_MSG_SAFESTATE;
1134 }
1126 #endif 1135 #endif
1127 apply_autocmds(EVENT_SAFESTATEAGAIN, NULL, NULL, FALSE, curbuf); 1136 apply_autocmds(EVENT_SAFESTATEAGAIN, NULL, NULL, FALSE, curbuf);
1128 } 1137 }
1129 #ifdef FEAT_JOB_CHANNEL 1138 #ifdef FEAT_JOB_CHANNEL
1130 else 1139 else