Commit 9f1dc86f authored by Miguel de Icaza's avatar Miguel de Icaza Committed by Arturo Espinosa

the last element of a paste was being dropped and the region was being

2000-01-02  Miguel de Icaza  <miguel@gnu.org>

	* src/clipboard.c (x_selection_to_cell_region): the last element
	of a paste was being dropped and the region was being miss-computed
parent 109202e0
2000-01-02 Miguel de Icaza <miguel@gnu.org>
* src/clipboard.c (x_selection_to_cell_region): the last element
of a paste was being dropped.
of a paste was being dropped and the region was being miss-computed
2000-01-02 Miguel de Icaza <miguel@gnu.org>
......
2000-01-02 Miguel de Icaza <miguel@gnu.org>
* src/clipboard.c (x_selection_to_cell_region): the last element
of a paste was being dropped.
of a paste was being dropped and the region was being miss-computed
2000-01-02 Miguel de Icaza <miguel@gnu.org>
......
......@@ -257,16 +257,14 @@ x_selection_to_cell_region (char *data, int len)
if (p != data)
list = new_node (list, data, p, cur_col, rows);
cur_col++;
if (cur_col > cols)
cols = cur_col;
if (*p == '\n'){
if (p != data)
list = new_node (list, data, p, cur_col, rows);
rows++;
if (p [1])
rows++;
cur_col = 0;
} else {
cur_col++;
if (cur_col > cols)
cols = cur_col;
}
}
data = p+1;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment