Skip to content

Commit

Permalink
patch 9.0.2175: Compile error with Motif UI + mouse support
Browse files Browse the repository at this point in the history
Problem:  Compile error with Motif UI + mouse support (after v9.0.1262)
Solution: Use correct oldval option pointer

Fix compilation error introduced by 9.0.1262 and found in #13704.

closes: #13726

Signed-off-by: Ken Takata <kentkt@csc.jp>
Signed-off-by: Christian Brabandt <cb@256bit.org>
  • Loading branch information
k-takata authored and chrisbra committed Dec 19, 2023
1 parent 5872bcb commit 18d0d29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/optionstr.c
Original file line number Diff line number Diff line change
Expand Up @@ -2956,7 +2956,7 @@ did_set_mousemodel(optset_T *args UNUSED)
if (check_opt_strings(p_mousem, p_mousem_values, FALSE) != OK)
return e_invalid_argument;
#if defined(FEAT_GUI_MOTIF) && defined(FEAT_MENU) && (XmVersion <= 1002)
else if (*p_mousem != *oldval)
else if (*p_mousem != *args->os_oldval.string)
// Changed from "extend" to "popup" or "popup_setpos" or vv: need
// to create or delete the popup menus.
gui_motif_update_mousemodel(root_menu);
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2176,
/**/
2175,
/**/
Expand Down

0 comments on commit 18d0d29

Please sign in to comment.