comparison src/ex_getln.c @ 18135:1868ec23360e v8.1.2062

patch 8.1.2062: the mouse code is spread out Commit: https://github.com/vim/vim/commit/b20b9e14ddd8db111e886ad0494e15b955159426 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Sep 21 20:48:04 2019 +0200 patch 8.1.2062: the mouse code is spread out Problem: The mouse code is spread out. Solution: Move all the mouse code to mouse.c. (Yegappan Lakshmanan, closes #4959)
author Bram Moolenaar <Bram@vim.org>
date Sat, 21 Sep 2019 21:00:07 +0200
parents a2870e6f5b45
children 59bc3cd42cf5
comparison
equal deleted inserted replaced
18134:c06a2bc8144f 18135:1868ec23360e
922 #ifdef HAVE_INPUT_METHOD 922 #ifdef HAVE_INPUT_METHOD
923 else if (p_imcmdline) 923 else if (p_imcmdline)
924 im_set_active(TRUE); 924 im_set_active(TRUE);
925 #endif 925 #endif
926 926
927 #ifdef FEAT_MOUSE
928 setmouse(); 927 setmouse();
929 #endif
930 #ifdef CURSOR_SHAPE 928 #ifdef CURSOR_SHAPE
931 ui_cursor_shape(); /* may show different cursor shape */ 929 ui_cursor_shape(); /* may show different cursor shape */
932 #endif 930 #endif
933 931
934 /* When inside an autocommand for writing "exiting" may be set and 932 /* When inside an autocommand for writing "exiting" may be set and
2387 #ifdef HAVE_INPUT_METHOD 2385 #ifdef HAVE_INPUT_METHOD
2388 if (b_im_ptr != NULL && *b_im_ptr != B_IMODE_LMAP) 2386 if (b_im_ptr != NULL && *b_im_ptr != B_IMODE_LMAP)
2389 im_save_status(b_im_ptr); 2387 im_save_status(b_im_ptr);
2390 im_set_active(FALSE); 2388 im_set_active(FALSE);
2391 #endif 2389 #endif
2392 #ifdef FEAT_MOUSE
2393 setmouse(); 2390 setmouse();
2394 #endif
2395 #ifdef CURSOR_SHAPE 2391 #ifdef CURSOR_SHAPE
2396 ui_cursor_shape(); /* may show different cursor shape */ 2392 ui_cursor_shape(); /* may show different cursor shape */
2397 #endif 2393 #endif
2398 sb_text_end_cmdline(); 2394 sb_text_end_cmdline();
2399 2395
4158 4154
4159 /* No Ex mode here! */ 4155 /* No Ex mode here! */
4160 exmode_active = 0; 4156 exmode_active = 0;
4161 4157
4162 State = NORMAL; 4158 State = NORMAL;
4163 # ifdef FEAT_MOUSE
4164 setmouse(); 4159 setmouse();
4165 # endif
4166 4160
4167 // Trigger CmdwinEnter autocommands. 4161 // Trigger CmdwinEnter autocommands.
4168 trigger_cmd_autocmd(cmdwin_type, EVENT_CMDWINENTER); 4162 trigger_cmd_autocmd(cmdwin_type, EVENT_CMDWINENTER);
4169 if (restart_edit != 0) // autocmd with ":startinsert" 4163 if (restart_edit != 0) // autocmd with ":startinsert"
4170 stuffcharReadbuff(K_NOP); 4164 stuffcharReadbuff(K_NOP);
4288 # ifdef FEAT_RIGHTLEFT 4282 # ifdef FEAT_RIGHTLEFT
4289 cmdmsg_rl = save_cmdmsg_rl; 4283 cmdmsg_rl = save_cmdmsg_rl;
4290 # endif 4284 # endif
4291 4285
4292 State = save_State; 4286 State = save_State;
4293 # ifdef FEAT_MOUSE
4294 setmouse(); 4287 setmouse();
4295 # endif
4296 4288
4297 return cmdwin_result; 4289 return cmdwin_result;
4298 } 4290 }
4299 #endif // FEAT_CMDWIN 4291 #endif // FEAT_CMDWIN
4300 4292