floating point exception with editor_tab_spacing=1 #2953
Labels
area: mcedit
mcedit, the built-in text editor
prio: medium
Has the potential to affect progress
ver: 4.8.7
Reproducible in version 4.8.7
Milestone
Important
This issue was migrated from Trac:
Enlik
(poczta-sn@….pl)editor_tab_spacing=1 in mc.ini and executing something like:
mcedit filename
leads to SIGFPE.
The problem seems to be here (disclaimer: quick look):
./src/editor/edit.c:3261
this part:
edit->curs_col % (HALF_TAB_SIZE * space_width)
HALF_TAB_SIZE is defined as ((int) option_tab_spacing / 2), so when option_tab_spacing is 1, it leads to num % 0.
The text was updated successfully, but these errors were encountered: