<p>In <a href="https://github.com/geany/geany/pull/527#discussion_r68266979">src/ui_utils.c</a>:</p>
<pre style='color:#555'>> +void ui_update_menu_eol(GeanyDocument *doc)
> +{
> +  gint eol = sci_get_eol_mode(doc->editor->sci);
> +  const gchar *widget_name;
> +
> +  switch (eol)
> +  {
> +          case SC_EOL_CR: widget_name = "cr"; break;
> +          case SC_EOL_LF: widget_name = "lf"; break;
> +          default: widget_name = "crlf"; break;
> +  }
> +  gtk_check_menu_item_set_active(
> +          GTK_CHECK_MENU_ITEM(ui_lookup_widget(main_widgets.window, widget_name)), TRUE);
> +
> +  ui_update_statusbar(doc, -1);
> +}
</pre>
<p>There was nothing really deep behind this - just pure laziness - I basically just copied what was in UNDO_ENCODING. Looking at it you are right, this is unnecessary.</p>

<p>To make things consistent I added a similar patch for UNDO_ENCODING too.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/527/files/6a2422af3226738247284ef8f1154a8e23bfca9f#r68266979">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/ABDrJ5M4deriontWClKtd0hcibXyEH9Xks5qOrOqgaJpZM4FJSj5">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ5D03min4niUgB1-6X-RFppvAdj7ks5qOrOqgaJpZM4FJSj5.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/pull/527/files/6a2422af3226738247284ef8f1154a8e23bfca9f#r68266979"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>