tweaks: swap a comparison, to be clearer
parent
c620fc6aa9
commit
6971db773b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue