Mercurial > vim
comparison src/menu.c @ 26771:fc859aea8cec v8.2.3914
patch 8.2.3914: various spelling mistakes in comments
Commit: https://github.com/vim/vim/commit/af4a61a85d6e8cacc35324f266934bc463a21673
Author: Dominique Pelle <dominique.pelle@gmail.com>
Date: Mon Dec 27 17:21:41 2021 +0000
patch 8.2.3914: various spelling mistakes in comments
Problem: Various spelling mistakes in comments.
Solution: Fix the mistakes. (Dominique Pell?, closes https://github.com/vim/vim/issues/9416)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 27 Dec 2021 18:30:05 +0100 |
parents | 6f615b2fdc66 |
children | bce848ec8b1b |
comparison
equal
deleted
inserted
replaced
26770:15ff3f2e0d58 | 26771:fc859aea8cec |
---|---|
580 { | 580 { |
581 emsg(_("E332: Separator cannot be part of a menu path")); | 581 emsg(_("E332: Separator cannot be part of a menu path")); |
582 goto erret; | 582 goto erret; |
583 } | 583 } |
584 | 584 |
585 // Not already there, so lets add it | 585 // Not already there, so let's add it |
586 menu = ALLOC_CLEAR_ONE(vimmenu_T); | 586 menu = ALLOC_CLEAR_ONE(vimmenu_T); |
587 if (menu == NULL) | 587 if (menu == NULL) |
588 goto erret; | 588 goto erret; |
589 | 589 |
590 menu->modes = modes; | 590 menu->modes = modes; |
995 | 995 |
996 | 996 |
997 // Recalculate modes for menu based on the new updated children | 997 // Recalculate modes for menu based on the new updated children |
998 menu->modes &= ~modes; | 998 menu->modes &= ~modes; |
999 #if defined(FEAT_GUI_MSWIN) & defined(FEAT_TEAROFF) | 999 #if defined(FEAT_GUI_MSWIN) & defined(FEAT_TEAROFF) |
1000 if ((s_tearoffs) && (menu->children != NULL)) // there's a tear bar.. | 1000 if ((s_tearoffs) && (menu->children != NULL)) // there's a tear bar. |
1001 child = menu->children->next; // don't count tearoff bar | 1001 child = menu->children->next; // don't count tearoff bar |
1002 else | 1002 else |
1003 #endif | 1003 #endif |
1004 child = menu->children; | 1004 child = menu->children; |
1005 for ( ; child != NULL; child = child->next) | 1005 for ( ; child != NULL; child = child->next) |
1016 } | 1016 } |
1017 if ((menu->modes & MENU_ALL_MODES) == 0) | 1017 if ((menu->modes & MENU_ALL_MODES) == 0) |
1018 { | 1018 { |
1019 // The menu item is no longer valid in ANY mode, so delete it | 1019 // The menu item is no longer valid in ANY mode, so delete it |
1020 #if defined(FEAT_GUI_MSWIN) & defined(FEAT_TEAROFF) | 1020 #if defined(FEAT_GUI_MSWIN) & defined(FEAT_TEAROFF) |
1021 if (s_tearoffs && menu->children != NULL) // there's a tear bar.. | 1021 if (s_tearoffs && menu->children != NULL) // there's a tear bar. |
1022 free_menu(&menu->children); | 1022 free_menu(&menu->children); |
1023 #endif | 1023 #endif |
1024 *menup = menu; | 1024 *menup = menu; |
1025 free_menu(menup); | 1025 free_menu(menup); |
1026 } | 1026 } |