| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f283cdc commit da890a6
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1358,9 +1358,13 @@ do_key_sample_point( | |||
| 1358 | 1358 | { | |
| 1359 | 1359 | struct termentry *t = term; | |
| 1360 | 1360 | ||
| 1361 | - /* If the plot this title belongs to specified a non-standard place */ | ||
| 1362 | - /* for the key sample to appear, use that to override xl, yl. */ | ||
| 1363 | - if (this_plot->title_position && this_plot->title_position->scalex != character) { | ||
| 1361 | + /* If the plot this title belongs to specified a non-standard place | ||
| 1362 | + * for the key sample to appear, use that to override xl, yl. | ||
| 1363 | + * For "at end|beg" do nothing at all. | ||
| 1364 | + */ | ||
| 1365 | + if (this_plot->title_position) { | ||
| 1366 | + if (this_plot->title_position->scalex == character) | ||
| 1367 | + return; | ||
| 1364 | 1368 | map_position(this_plot->title_position, &xl, &yl, "key sample"); | |
| 1365 | 1369 | xl -= (key->just == GPKEY_LEFT) ? key_text_left : key_text_right; | |
| 1366 | 1370 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments