tweaks: swap a comparison, to be clearer

master
Benno Schulenberg 2017-05-11 10:28:43 +02:00
parent c620fc6aa9
commit 6971db773b
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ void get_edge_and_target(size_t *leftedge, size_t *target_column)
if (ISSET(SOFTWRAP)) {
size_t realspan = strlenpt(openfile->current->data);
if (openfile->placewewant < realspan)
if (realspan > openfile->placewewant)
realspan = openfile->placewewant;
*leftedge = (realspan / editwincols) * editwincols;