Mercurial > vim
comparison src/ui.c @ 23612:8dbebce07695 v8.2.2348
patch 8.2.2348: no check for modified files after focus gained
Commit: https://github.com/vim/vim/commit/fadd55bd633b3b84d41a691e953f569bb6c21689
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jan 14 19:19:18 2021 +0100
patch 8.2.2348: no check for modified files after focus gained
Problem: No check for modified files after focus gained. (Mathias Stearn)
Solution: Call ui_focus_change().
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 14 Jan 2021 19:30:04 +0100 |
parents | 39d62cdde492 |
children | 9f64c420f280 |
comparison
equal
deleted
inserted
replaced
23611:181ae0ba5950 | 23612:8dbebce07695 |
---|---|
1099 if (row >= (int)screen_Rows) | 1099 if (row >= (int)screen_Rows) |
1100 return (int)screen_Rows - 1; | 1100 return (int)screen_Rows - 1; |
1101 return row; | 1101 return row; |
1102 } | 1102 } |
1103 | 1103 |
1104 #if defined(FEAT_GUI) || defined(MSWIN) || defined(PROTO) | |
1105 /* | 1104 /* |
1106 * Called when focus changed. Used for the GUI or for systems where this can | 1105 * Called when focus changed. Used for the GUI or for systems where this can |
1107 * be done in the console (Win32). | 1106 * be done in the console (Win32). |
1108 */ | 1107 */ |
1109 void | 1108 void |
1162 // File may have been changed from 'readonly' to 'noreadonly' | 1161 // File may have been changed from 'readonly' to 'noreadonly' |
1163 if (need_maketitle) | 1162 if (need_maketitle) |
1164 maketitle(); | 1163 maketitle(); |
1165 #endif | 1164 #endif |
1166 } | 1165 } |
1167 #endif | |
1168 | 1166 |
1169 #if defined(HAVE_INPUT_METHOD) || defined(PROTO) | 1167 #if defined(HAVE_INPUT_METHOD) || defined(PROTO) |
1170 /* | 1168 /* |
1171 * Save current Input Method status to specified place. | 1169 * Save current Input Method status to specified place. |
1172 */ | 1170 */ |